table { border-collapse: collapse; }
td, th { padding: 0.2em 0.7em; }
+/*
th a.sort { padding: 0 0.3em; }
+*/
+th a.sort { float: left; margin-right: 0.1em; }
textarea,
select,
table-layout: fixed;
}
-table.rows.fixed {
- width: 100%;
-}
-
table.rows tr:nth-child(even) td {
background-color: #FEFEFE;
}
text-align: right;
}
-table.rows th {
- text-align: left;
-}
+table.rows th { text-align: left; }
table.rows td {
padding: 0.3em 0.3em;
}
+table.rows.fixed { width: 100%; }
+
table.rows.fixed th,
table.rows.fixed td,
div.row div label
overflow: hidden;
}
-table.rows.fixed th {
- white-space: normal;
-}
+table.rows.fixed th { white-space: normal; }
/*
table.rows.fixed th:hover,
table.rows.fixed td:hover {
overflow: inherit;
text-overflow: inherit;
+ white-space: normal;
z-index: 9;
+ border: solid 1px #ccc;
+ display: inline-block;
+ background-color: #ccc;
}
*/
*/
div.rows { clear: both; }
div.row { float: left; margin-right: 4px; min-width: 24%; }
+.nofloat { float: none; }
div.row div {
margin: 0;
form.menu {
padding: 0.5em;
background-color: #FAFAFA;
+ max-width: 1024px;
}
form.menu .button.add {
//console.log('LOADED');
NodeList.prototype.forEach = Array.prototype.forEach;
+ var ext = ( window._dbq['param.format'] ? '.'+window._dbq['param.format'] : '');
+ if ( ext == '.'+window._dbq['default.format'] ) ext='';
/* Clean when submit */
document.querySelectorAll("form").forEach(function(e) {
form.querySelectorAll("form.menu select.tables").forEach(function(e) {
e.removeAttribute('name');
e.onchange = function() {
- this.form.setAttribute('action',window._dbq['db.base']+'/'+this.value
- + ( window._dbq['param.format'] ? '.'+window._dbq['param.format'] : '')
- );
+ this.form.setAttribute('action',window._dbq['db.base']+'/'+this.value+ext);
+ /*
+ window.location = this.form.getAttribute('action')+'?table='+e.value;
+ return false;
+ */
+ form_clean(this.form);
return this.form.onsubmit();
}
});