diff options
author | ondras <none@none> | 2011-10-07 08:43:09 +0200 |
---|---|---|
committer | ondras <none@none> | 2011-10-07 08:43:09 +0200 |
commit | 8d9f95ea0be76cce2b2b7b86c8f87707cb8d1fad (patch) | |
tree | 3b1007e9efd9ac5903d67980822aed0adaab0aa3 /js/wwwsqldesigner.js | |
parent | 3791a36ade0c3b1a5fcfc0c4787ee1b0c7f648d6 (diff) | |
download | wwwsqldesigner-8d9f95ea0be76cce2b2b7b86c8f87707cb8d1fad.zip wwwsqldesigner-8d9f95ea0be76cce2b2b7b86c8f87707cb8d1fad.tar.gz wwwsqldesigner-8d9f95ea0be76cce2b2b7b86c8f87707cb8d1fad.tar.bz2 |
field size bug
Diffstat (limited to 'js/wwwsqldesigner.js')
-rw-r--r-- | js/wwwsqldesigner.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/js/wwwsqldesigner.js b/js/wwwsqldesigner.js index 2cbae9c..296640a 100644 --- a/js/wwwsqldesigner.js +++ b/js/wwwsqldesigner.js @@ -119,9 +119,7 @@ SQL.Row.prototype.setTitle = function(t) { if (tt != r.row2.getTitle()) { r.row2.setTitle(tt); } } - var title = t; - if (SQL.Designer.getOption("showsize") && this.data.size) { title += " (" + this.data.size + ")"; } - SQL.Visual.prototype.setTitle.apply(this, [title]); + SQL.Visual.prototype.setTitle.apply(this, [t]); } SQL.Row.prototype.click = function(e) { /* clicked on row */ @@ -289,13 +287,17 @@ SQL.Row.prototype.redraw = function() { this.dom.selected.style.display = (this.selected ? "" : "none"); this.dom.container.title = this.data.comment; + var typehint = []; if (this.owner.owner.getOption("showtype")) { var elm = this.getDataType(); - var t = elm.getAttribute("sql"); - if (this.data.size.length) { t += "("+this.data.size+")"; } - this.dom.typehint.innerHTML = t; + typehint.push(elm.getAttribute("sql")); + } + + if (this.owner.owner.getOption("showsize") && this.data.size) { + typehint.push("(" + this.data.size + ")"); } + this.dom.typehint.innerHTML = typehint.join(" "); this.owner.redraw(); this.owner.owner.rowManager.redraw(); } |