Added comment indicators
This commit is contained in:
@@ -191,6 +191,7 @@ SQL.Row.prototype.expand = function() {
|
|||||||
this.buildEdit();
|
this.buildEdit();
|
||||||
this.load();
|
this.load();
|
||||||
this.redraw();
|
this.redraw();
|
||||||
|
this.dom.container.classList.add('expanded');
|
||||||
this.dom.name.focus();
|
this.dom.name.focus();
|
||||||
this.dom.name.select();
|
this.dom.name.select();
|
||||||
}
|
}
|
||||||
@@ -198,6 +199,7 @@ SQL.Row.prototype.expand = function() {
|
|||||||
SQL.Row.prototype.collapse = function() {
|
SQL.Row.prototype.collapse = function() {
|
||||||
if (!this.expanded) { return; }
|
if (!this.expanded) { return; }
|
||||||
this.expanded = false;
|
this.expanded = false;
|
||||||
|
this.dom.container.classList.remove('expanded');
|
||||||
|
|
||||||
var data = {
|
var data = {
|
||||||
type: this.dom.type.selectedIndex,
|
type: this.dom.type.selectedIndex,
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ SQL.Table.prototype._build = function() {
|
|||||||
var thead = OZ.DOM.elm("thead");
|
var thead = OZ.DOM.elm("thead");
|
||||||
var tr = OZ.DOM.elm("tr");
|
var tr = OZ.DOM.elm("tr");
|
||||||
this.dom.title = OZ.DOM.elm("td", {className:"title", colSpan:2});
|
this.dom.title = OZ.DOM.elm("td", {className:"title", colSpan:2});
|
||||||
|
|
||||||
|
console.log(this.getComment());
|
||||||
|
|
||||||
OZ.DOM.append(
|
OZ.DOM.append(
|
||||||
[this.dom.container, this.dom.content],
|
[this.dom.container, this.dom.content],
|
||||||
|
|||||||
@@ -145,6 +145,34 @@ body {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table thead td[title]:after{
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
border-color: royalblue;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 5px;
|
||||||
|
border-bottom-color: transparent;
|
||||||
|
border-left-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table tbody tr {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table tbody[title]:not(.expanded):not([title=""]) tr:after{
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
border-color: royalblue;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 5px;
|
||||||
|
border-bottom-color: transparent;
|
||||||
|
border-left-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
.primary {
|
.primary {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user