Skip to content

Instantly share code, notes, and snippets.

@jinan-kordab
Created November 11, 2018 14:04
Show Gist options
  • Save jinan-kordab/7a25b1fb4c9e1547c6e8e8d18e9bf786 to your computer and use it in GitHub Desktop.
Save jinan-kordab/7a25b1fb4c9e1547c6e8e8d18e9bf786 to your computer and use it in GitHub Desktop.
Function that actually hides the spinner after checking the session state that is returned from AJAX call
function hideSpinner() {
window.clearInterval(SessionChecker);
var UserAgent = window.navigator.userAgent;
var InternetExplorer = /MSIE|Trident/.test(UserAgent);
if (InternetExplorer) {
//IE
$(".animatedSpinnerContainer").html("");
}
else {
$(".animatedSpinnerContainer").hide();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment