mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 08:06:59 +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; }
|
.view { font-style: italic; }
|
||||||
.active { font-weight: bold; }
|
.active { font-weight: bold; }
|
||||||
.sqlarea { width: 98%; }
|
.sqlarea { width: 98%; }
|
||||||
.explain { white-space: pre; }
|
.explain table { white-space: pre; }
|
||||||
.icon { width: 18px; height: 18px; background-color: navy; }
|
.icon { width: 18px; height: 18px; background-color: navy; }
|
||||||
.icon:hover { background-color: red; }
|
.icon:hover { background-color: red; }
|
||||||
.size { width: 7ex; }
|
.size { width: 7ex; }
|
||||||
|
@@ -65,7 +65,7 @@ function mixin(target, source) {
|
|||||||
/** Add or remove CSS class
|
/** Add or remove CSS class
|
||||||
* @param HTMLElement
|
* @param HTMLElement
|
||||||
* @param string
|
* @param string
|
||||||
* @param [bool]
|
* @param [boolean]
|
||||||
*/
|
*/
|
||||||
function alterClass(el, className, enable) {
|
function alterClass(el, className, enable) {
|
||||||
if (el) {
|
if (el) {
|
||||||
@@ -79,7 +79,7 @@ function alterClass(el, className, enable) {
|
|||||||
*/
|
*/
|
||||||
function toggle(id) {
|
function toggle(id) {
|
||||||
var el = qs('#' + id);
|
var el = qs('#' + id);
|
||||||
el.className = (el.className == 'hidden' ? '' : 'hidden');
|
alterClass(el, 'hidden', !/(^|\s)hidden(\s|$)/.test(el.className));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user