mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 10:04:07 +02:00
Fix AJAX loading indicator in Chrome
This commit is contained in:
@@ -199,7 +199,7 @@ function bodyKeydown(event, button) {
|
|||||||
if (ajaxXmlhttp.abort) {
|
if (ajaxXmlhttp.abort) {
|
||||||
ajaxXmlhttp.abort();
|
ajaxXmlhttp.abort();
|
||||||
}
|
}
|
||||||
document.body.className = document.body.className.replace(/ loading/, '');
|
document.body.className = document.body.className.replace(/ loading/g, '');
|
||||||
onblur = function () { };
|
onblur = function () { };
|
||||||
if (originalFavicon) {
|
if (originalFavicon) {
|
||||||
replaceFavicon(originalFavicon);
|
replaceFavicon(originalFavicon);
|
||||||
@@ -360,7 +360,7 @@ function ajaxSend(url, data, popState, noscroll) {
|
|||||||
scrollTo(0, 0);
|
scrollTo(0, 0);
|
||||||
}
|
}
|
||||||
setHtml('content', (xmlhttp.status ? xmlhttp.responseText : '<p class="error">' + noResponse));
|
setHtml('content', (xmlhttp.status ? xmlhttp.responseText : '<p class="error">' + noResponse));
|
||||||
document.body.className = document.body.className.replace(/ loading/, '');
|
document.body.className = document.body.className.replace(/ loading/g, '');
|
||||||
var content = document.getElementById('content');
|
var content = document.getElementById('content');
|
||||||
var scripts = content.getElementsByTagName('script');
|
var scripts = content.getElementsByTagName('script');
|
||||||
var length = scripts.length; // required to avoid infinite loop
|
var length = scripts.length; // required to avoid infinite loop
|
||||||
|
Reference in New Issue
Block a user