2e18c378735cc8ea1254ed3f899c48c6eebd6632 angie Mon Jul 9 15:28:50 2012 -0700 Added abort method to loadingImage. (for #6152) diff --git src/hg/js/ajax.js src/hg/js/ajax.js index be6145b..fba58eb 100644 --- src/hg/js/ajax.js +++ src/hg/js/ajax.js @@ -490,18 +490,23 @@ imgEle.hide(); }, run: function() { msgEle.append(statusMsg); if(navigator.userAgent.indexOf("Chrome") != -1) { // In Chrome, gif animation and setTimeout's are stopped when the browser receives the first blank line/comment of the next page // (basically, the current page is unloaded). I have found no way around this problem, so we just show a // simple "Processing..." message (we can't make that blink, b/c Chrome doesn't support blinking text). // // (Surprisingly, this is NOT true for Safari, so this is apparently not a WebKit issue). imgEle.replaceWith("<span id='loadingBlinker'> <b>Processing...</b></span>"); } else { imgEle.show(); setTimeout(refreshLoadingImg, 1000); } + }, + abort: function() { + imgEle.hide(); + msgEle.hide(); + jQuery('body').css('cursor', ''); } } }();