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:
@@ -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
|
||||
|
Reference in New Issue
Block a user