Created
November 11, 2018 14:04
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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