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:
@@ -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; }
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user