Load page without POST after denied AJAX reload
This commit is contained in:
parent
fa832055c8
commit
58347d495e
|
@ -365,8 +365,8 @@ function ajaxSend(url, data, popState) {
|
||||||
* @param PopStateEvent|history
|
* @param PopStateEvent|history
|
||||||
*/
|
*/
|
||||||
onpopstate = function (event) {
|
onpopstate = function (event) {
|
||||||
if (event.state ? confirm(areYouSure) : ajaxState) {
|
if (ajaxState || event.state) {
|
||||||
ajaxSend(location.href, event.state, 1); // 1 - disable pushState
|
ajaxSend(location.href, (event.state && confirm(areYouSure) ? event.state : ''), 1); // 1 - disable pushState
|
||||||
} else {
|
} else {
|
||||||
ajaxState++;
|
ajaxState++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue