Skip to content
Snippets Groups Projects
Commit 26aa5c0b authored by Jared Hancock's avatar Jared Hancock
Browse files

pjax: Show loading dialog for pjax requests

parent b7a26c9f
No related branches found
No related tags found
No related merge requests found
......@@ -634,7 +634,13 @@ getConfig = (function() {
}
})();
$(document).on('pjax:start', function() { clearInterval(window.ticket_refresh); });
$(document).on('pjax:start', function() {
clearInterval(window.ticket_refresh);
$('#loading').show().css({opacity:0.7});
});
$(document).on('pjax:complete', function() {
$('#loading').hide().css({opacity:1});
});
$(document).on('click', 'a', function() {
var ul = $(this).closest('ul');
if (ul.is('#sub_nav')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment