Commit 3611725e authored by Rebecca Blundell's avatar Rebecca Blundell Committed by Cecilia Vela Gurovic

Bug 1775479: remove obsolete comment code

remove some un-needed code
can't find anything else that should go

behatnotneeded

Change-Id: I25f978739640a895bd54ea1d9781bc537db4b029
parent 482e5b92
......@@ -359,34 +359,6 @@ jQuery(function () {
});
jQuery(function($) {
$('#column-container .blockinstance-content .commentlink').each(function() {
var blockid = $(this).attr('id').match(/\d+/);
// only use comments expander if there are comments on the artefact
$(this).on('click', function(e) {
var commentlink = $(this);
var chtml = commentlink.parent().parent().find('#feedbacktable_' + blockid).parent();
// add a 'close' link at the bottom of the list for convenience
if ($('#closer_' + blockid).length == 0) {
var closer = $('<a id="closer_' + blockid + '" href="#" class="close-link">Close</a>').on("click", function(e) {
$(this).parent().toggle(400, function() {
commentlink.trigger("focus");
});
e.preventDefault();
});
chtml.append(closer);
}
chtml.toggle(400, function() {
if (chtml.is(':visible')) {
chtml.find('a').first().trigger("focus");
}
else {
commentlink.trigger("focus");
}
});
e.preventDefault();
});
});
$('.moretags').on('click', function(e) {
e.preventDefault();
var params = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment