1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 01:54:00 +02:00

Avoid double AJAX refresh in Chrome

This commit is contained in:
Jakub Vrana
2011-03-17 23:48:38 +01:00
parent 0f4ca18427
commit cdeecc3e19
3 changed files with 3 additions and 7 deletions

View File

@@ -346,7 +346,7 @@ function ajaxSend(url, data, popState) {
* @param PopStateEvent|history
*/
onpopstate = function (event) {
if (!event.state || confirm(areYouSure)) {
if (event.state ? confirm(areYouSure) : ajaxState) {
ajaxSend(location.href, event.state, 1); // 1 - disable pushState
}
}