Skip to content

Commit

Permalink
Allow loading more data with inline edit (bug #3605531)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Mar 27, 2013
1 parent e154506 commit f43ef7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 4 additions & 6 deletions adminer/static/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,12 +502,10 @@ function selectLoadMore(a, limit, loading) {
if (href) {
a.removeAttribute('href');
return ajax(href, function (request) {
document.getElementById('table').innerHTML += request.responseText;
var rows = 0;
request.responseText.replace(/(^|\n)<tr/g, function () {
rows++;
});
if (rows < limit) {
var tbody = document.createElement('tbody');
tbody.innerHTML = request.responseText;
document.getElementById('table').appendChild(tbody);
if (tbody.children.length < limit) {
a.parentNode.removeChild(a);
} else {
a.href = href.replace(/\d+$/, function (page) {
Expand Down
1 change: 1 addition & 0 deletions changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Adminer 3.6.4-dev:
Display select SQL edit form inline
Compatibility with MySQL 5.6
Recover original view, trigger, routine if creating fails
Allow loading more data with inline edit (bug #3605531)
Disable autocapitalize in identifiers
Indeterminate state of select all checkboxes

Expand Down

0 comments on commit f43ef7b

Please sign in to comment.