1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Display explain on first click

Also remove extra newlines in explain
This commit is contained in:
Jakub Vrana
2025-03-08 18:14:13 +01:00
parent 3b2ef32349
commit afe7dd9ad9
2 changed files with 3 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ input.wayoff { left: -1000px; position: absolute; }
.view { font-style: italic; }
.active { font-weight: bold; }
.sqlarea { width: 98%; }
.explain { white-space: pre; }
.explain table { white-space: pre; }
.icon { width: 18px; height: 18px; background-color: navy; }
.icon:hover { background-color: red; }
.size { width: 7ex; }

View File

@@ -65,7 +65,7 @@ function mixin(target, source) {
/** Add or remove CSS class
* @param HTMLElement
* @param string
* @param [bool]
* @param [boolean]
*/
function alterClass(el, className, enable) {
if (el) {
@@ -79,7 +79,7 @@ function alterClass(el, className, enable) {
*/
function toggle(id) {
var el = qs('#' + id);
el.className = (el.className == 'hidden' ? '' : 'hidden');
alterClass(el, 'hidden', !/(^|\s)hidden(\s|$)/.test(el.className));
return false;
}