page loading progress fix for firefox - final stage of function wasn't working correctly

pull/776/head
razvanaldea89 2019-02-22 16:34:21 +02:00
parent 537ecad0ab
commit a4502b0481
1 changed files with 3 additions and 2 deletions

View File

@ -4319,9 +4319,10 @@ $(".bulk_action input").on("ifChecked", function () {
$(this).next().slideToggle(200), $expand = $(this).find(">:first-child"), "+" == $expand.text() ? $expand.text("-") : $expand.text("+")
})
}), "undefined" != typeof NProgress && ($(document).ready(function () {
NProgress.start()
NProgress.start();
}), $(window).on('load', function () {
NProgress.done()
// setTimeout fix for Firefox
setTimeout(function(){ NProgress.done() },100);
}));
var originalLeave = $.fn.popover.Constructor.prototype.leave;
$.fn.popover.Constructor.prototype.leave = function (a) {