mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 03:24:01 +02:00
Don't add the same page to history in AJAX
This commit is contained in:
@@ -301,7 +301,9 @@ function ajaxSend(url, data, popState) {
|
|||||||
setHtml('loader', '');
|
setHtml('loader', '');
|
||||||
} else {
|
} else {
|
||||||
if (!popState) {
|
if (!popState) {
|
||||||
|
if (data || url != location.href) {
|
||||||
history.pushState(data, '', url);
|
history.pushState(data, '', url);
|
||||||
|
}
|
||||||
scrollTo(0, 0);
|
scrollTo(0, 0);
|
||||||
}
|
}
|
||||||
setHtml('content', text);
|
setHtml('content', text);
|
||||||
|
Reference in New Issue
Block a user