From 10b00e13b1cac290a0fa61d74b6d51ad95b39d9f Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 15 Jul 2019 13:16:24 +0200 Subject: [PATCH] Fix displaying SQL command after Save and continue edit --- adminer/static/editing.js | 5 +++-- adminer/static/functions.js | 1 + changes.txt | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/adminer/static/editing.js b/adminer/static/editing.js index 21b8435a..97fa5327 100644 --- a/adminer/static/editing.js +++ b/adminer/static/editing.js @@ -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)); } diff --git a/adminer/static/functions.js b/adminer/static/functions.js index 084fb1bd..cb6be6b3 100644 --- a/adminer/static/functions.js +++ b/adminer/static/functions.js @@ -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); } diff --git a/changes.txt b/changes.txt index 7c360a88..2ce90343 100644 --- a/changes.txt +++ b/changes.txt @@ -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)