Skip to content

Commit

Permalink
Don't scroll with AJAX select order and alter move column
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Jul 28, 2011
1 parent 5046f71 commit aeae30f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adminer/static/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ function ajaxSend(url, data, popState, noscroll) {
history.pushState(data, '', url); //! remember window position
}
}
if (!noscroll) {
if (!noscroll && !/&order/.test(url)) {
scrollTo(0, 0);
}
setHtml('content', xmlhttp.responseText);
Expand Down Expand Up @@ -376,9 +376,9 @@ function ajaxForm(form, data, noscroll) {
params.push(data);
}
if (form.method == 'post') {
return ajaxSend((/\?/.test(form.action) ? form.action : location.href), params.join('&'), noscroll); // ? - always part of Adminer URL
return ajaxSend((/\?/.test(form.action) ? form.action : location.href), params.join('&'), false, noscroll); // ? - always part of Adminer URL
}
return ajaxSend((form.action || location.href).replace(/\?.*/, '') + '?' + params.join('&'), noscroll);
return ajaxSend((form.action || location.href).replace(/\?.*/, '') + '?' + params.join('&'), '', false, noscroll);
}


Expand Down
3 changes: 3 additions & 0 deletions changes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Adminer 3.3.2-dev:
Don't scroll with AJAX select order and alter move column

Adminer 3.3.1 (released 2011-07-27):
Fix XSS introduced in Adminer 3.2.0
Fix altering default values (PostgreSQL)
Expand Down

0 comments on commit aeae30f

Please sign in to comment.