Highlight foreign key relations

This commit is contained in:
Radovan Skolnik
2020-01-06 22:31:13 +01:00
parent 3176b1896f
commit ca243d0a99
3 changed files with 22 additions and 0 deletions
+2
View File
@@ -46,12 +46,14 @@ SQL.Row.prototype._build = function() {
SQL.Row.prototype.select = function() {
if (this.selected) { return; }
this.selected = true;
for (var i = 0; i < this.relations.length; i++) { this.relations[i].highlight(); }
this.redraw();
}
SQL.Row.prototype.deselect = function() {
if (!this.selected) { return; }
this.selected = false;
for (var i = 0; i < this.relations.length; i++) { this.relations[i].dehighlight(); }
this.redraw();
this.collapse();
}