Browse Source

Fixed spinner

pull/160/head
Mike Olund 8 years ago
parent
commit
671b3344b4
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      edivorce/apps/core/static/js/main.js

+ 2
- 4
edivorce/apps/core/static/js/main.js View File

@ -112,15 +112,13 @@ $(function () {
$('div#progress-overlay-spinner').spin('large');
setTimeout(function(){
$('div#progress-overlay').hide();
$('div#progress-overlay-spinner').spin(false);
window.location.href = href;
}, 300);
}, 0);
});
// kills the spinner when the back button is pressed
$(window).on('beforeunload', function () {
$(window).on('pageshow', function () {
$('div#progress-overlay').hide();
$('div#progress-overlay-spinner').spin(false);
});


Loading…
Cancel
Save