1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-26 07:44:37 +02:00

Confirm AJAX POST reload

This commit is contained in:
Jakub Vrana
2011-03-16 13:07:44 +01:00
parent f60058aa74
commit a00b52a689
2 changed files with 6 additions and 1 deletions

View File

@@ -356,7 +356,9 @@ function ajaxMain(url, data, event) {
* @param PopStateEvent|history
*/
onpopstate = function (event) {
ajaxSend(location.href, event.state, 1); // 1 - disable pushState
if (!event.state || confirm(areYouSure)) {
ajaxSend(location.href, event.state, 1); // 1 - disable pushState
}
}
/** Send form by AJAX GET