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

Don't add the same page to history in AJAX

This commit is contained in:
Jakub Vrana
2011-03-12 00:16:56 +01:00
parent 3a84672355
commit d3609817a1

View File

@@ -301,7 +301,9 @@ function ajaxSend(url, data, popState) {
setHtml('loader', '');
} else {
if (!popState) {
history.pushState(data, '', url);
if (data || url != location.href) {
history.pushState(data, '', url);
}
scrollTo(0, 0);
}
setHtml('content', text);