]> git.joonet.de Git - adminer.git/commitdiff
Fix displaying SQL command after Save and continue edit
authorJakub Vrana <jakub@vrana.cz>
Mon, 15 Jul 2019 11:16:24 +0000 (13:16 +0200)
committerJakub Vrana <jakub@vrana.cz>
Mon, 15 Jul 2019 11:16:24 +0000 (13:16 +0200)
adminer/static/editing.js
adminer/static/functions.js
changes.txt

index 21b8435ae2cf49ee2003b7f5595ea7013cb592b6..97fa5327b032fcbaa443d3d977372055d7f0ded8 100644 (file)
@@ -72,9 +72,10 @@ function typePassword(el, disable) {
 }
 
 /** Install toggle handler
+* @param [HTMLElement]
 */
-function messagesPrint() {
-       var els = qsa('.toggle', document);
+function messagesPrint(el) {
+       var els = qsa('.toggle', el || document);
        for (var i = 0; i < els.length; i++) {
                els[i].onclick = partial(toggle, els[i].getAttribute('href').substr(1));
        }
index 084fb1bd25d4d478b5788b6ad07350a8ef3a68a2..cb6be6b33a09e220169bdb84ed34a10a74d117e8 100644 (file)
@@ -672,6 +672,7 @@ function ajaxForm(form, message, button) {
                if (window.jush) {
                        jush.highlight_tag(qsa('code', qs('#ajaxstatus')), 0);
                }
+               messagesPrint(qs('#ajaxstatus'));
        }, data, message);
 }
 
index 7c360a88a78e000c1d8b56189c889c81021ea6c2..2ce90343a501370309a9461a4cbeb505eec33113 100644 (file)
@@ -2,6 +2,7 @@ Adminer 4.7.2-dev:
 Do not attempt logging in without password (bug #676)
 Stretch footer over the whole table width (bug #624)
 Allow overwriting tables when copying them
+Fix displaying SQL command after Save and continue edit
 Cache busting for adminer.css
 MySQL: Fix displaying multi-columns foreign keys (bug #675)
 MySQL: Fix creating users and changing password in MySQL 8 (bug #663)