Added comment indicators
This commit is contained in:
@@ -191,6 +191,7 @@ SQL.Row.prototype.expand = function() {
|
||||
this.buildEdit();
|
||||
this.load();
|
||||
this.redraw();
|
||||
this.dom.container.classList.add('expanded');
|
||||
this.dom.name.focus();
|
||||
this.dom.name.select();
|
||||
}
|
||||
@@ -198,6 +199,7 @@ SQL.Row.prototype.expand = function() {
|
||||
SQL.Row.prototype.collapse = function() {
|
||||
if (!this.expanded) { return; }
|
||||
this.expanded = false;
|
||||
this.dom.container.classList.remove('expanded');
|
||||
|
||||
var data = {
|
||||
type: this.dom.type.selectedIndex,
|
||||
|
||||
@@ -26,6 +26,8 @@ SQL.Table.prototype._build = function() {
|
||||
var tr = OZ.DOM.elm("tr");
|
||||
this.dom.title = OZ.DOM.elm("td", {className:"title", colSpan:2});
|
||||
|
||||
console.log(this.getComment());
|
||||
|
||||
OZ.DOM.append(
|
||||
[this.dom.container, this.dom.content],
|
||||
[this.dom.content, thead],
|
||||
|
||||
@@ -145,6 +145,34 @@ body {
|
||||
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 {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user