Allow loading more data with inline edit (bug #3605531)

This commit is contained in:
Jakub Vrana 2013-03-26 18:31:03 -07:00
parent e1545065f0
commit f43ef7b083
2 changed files with 5 additions and 6 deletions

View file

@ -502,12 +502,10 @@ function selectLoadMore(a, limit, loading) {
if (href) { if (href) {
a.removeAttribute('href'); a.removeAttribute('href');
return ajax(href, function (request) { return ajax(href, function (request) {
document.getElementById('table').innerHTML += request.responseText; var tbody = document.createElement('tbody');
var rows = 0; tbody.innerHTML = request.responseText;
request.responseText.replace(/(^|\n)<tr/g, function () { document.getElementById('table').appendChild(tbody);
rows++; if (tbody.children.length < limit) {
});
if (rows < limit) {
a.parentNode.removeChild(a); a.parentNode.removeChild(a);
} else { } else {
a.href = href.replace(/\d+$/, function (page) { a.href = href.replace(/\d+$/, function (page) {

View file

@ -2,6 +2,7 @@ Adminer 3.6.4-dev:
Display select SQL edit form inline Display select SQL edit form inline
Compatibility with MySQL 5.6 Compatibility with MySQL 5.6
Recover original view, trigger, routine if creating fails Recover original view, trigger, routine if creating fails
Allow loading more data with inline edit (bug #3605531)
Disable autocapitalize in identifiers Disable autocapitalize in identifiers
Indeterminate state of select all checkboxes Indeterminate state of select all checkboxes