Skip to content
Browse files

Fix original favicon

  • Loading branch information...
1 parent 3e3928e commit 492f78f6fe43fb3550c0b46ac58382d8fe9179ad @vrana committed Jul 19, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 adminer/static/functions.js
View
5 adminer/static/functions.js
@@ -255,7 +255,7 @@ function ajaxSetHtml(url) {
});
}
-var originalFavicon = (document.getElementById('favicon') || {}).href;
+var originalFavicon;
/** Replace favicon
* @param string
@@ -283,6 +283,9 @@ function ajaxSend(url, data, popState, noscroll) {
}
var currentState = ++ajaxState;
onblur = function () {
+ if (!originalFavicon) {
+ originalFavicon = (document.getElementById('favicon') || {}).href;
+ }
replaceFavicon('../adminer/static/loader.gif');
};
setHtml('loader', '<img src="../adminer/static/loader.gif" alt="">');

0 comments on commit 492f78f

Please sign in to comment.
Something went wrong with that request. Please try again.