From: Jakub Vrana Date: Fri, 11 Mar 2011 23:16:56 +0000 (+0100) Subject: Don't add the same page to history in AJAX X-Git-Tag: v3.2.1~42 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=d3609817a12268a5df69ce5deeb17098b5135a3f;p=adminer.git Don't add the same page to history in AJAX --- diff --git a/adminer/static/functions.js b/adminer/static/functions.js index 7009c7f4..dae001c4 100644 --- a/adminer/static/functions.js +++ b/adminer/static/functions.js @@ -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);