diff --git a/scp/js/scp.js b/scp/js/scp.js index c5945b2ab6934b2a6e046c5743b341b4be93e8df..6b075619d87b8e6b84a81f5eba14ed9d67f8320b 100644 --- a/scp/js/scp.js +++ b/scp/js/scp.js @@ -642,10 +642,6 @@ $(document).on('pjax:start', function() { window.clearTimeout(id); } - // Close popups - // Close tooltips - $('.dialog, .tip_box').empty().hide(); - if ($("#loadingbar").length === 0) { $("body").append("<div id='loadingbar'></div>"); $("#loadingbar").addClass("waiting").append($("<dt/><dd/>")); @@ -665,13 +661,11 @@ $(document).on('pjax:end', function() { $(this).remove(); }); $('#overlay').hide().removeAttr('style'); -}); -$(document).on('click', 'a', function() { - var ul = $(this).closest('ul'); - if (ul.is('#sub_nav')) { - $('a.active', ul).removeClass('active'); - $(this).addClass('active'); - } + + // Close popups + // Close tooltips + $('.tip_box').empty().hide(); + $('.dialog .body').empty().parent().hide(); }); // Quick note interface