Also remove extra newlines in explain
.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; }
/** Add or remove CSS class
* @param HTMLElement
* @param string
-* @param [bool]
+* @param [boolean]
*/
function alterClass(el, className, enable) {
if (el) {
*/
function toggle(id) {
var el = qs('#' + id);
- el.className = (el.className == 'hidden' ? '' : 'hidden');
+ alterClass(el, 'hidden', !/(^|\s)hidden(\s|$)/.test(el.className));
return false;
}