summaryrefslogtreecommitdiffstats
path: root/js/wwwsqldesigner.js
diff options
context:
space:
mode:
authorondrej.zara <none@none>2009-11-10 13:54:05 +0000
committerondrej.zara <none@none>2009-11-10 13:54:05 +0000
commitec6c49dc5b1b00a5ed8c7ba2e1c382ca28c3cf71 (patch)
tree1e7fa51a3547c60214d728ef193507239b465a6e /js/wwwsqldesigner.js
parent09da598d901c5e5075629c1a677e7d685d16b9b8 (diff)
downloadwwwsqldesigner-ec6c49dc5b1b00a5ed8c7ba2e1c382ca28c3cf71.zip
wwwsqldesigner-ec6c49dc5b1b00a5ed8c7ba2e1c382ca28c3cf71.tar.gz
wwwsqldesigner-ec6c49dc5b1b00a5ed8c7ba2e1c382ca28c3cf71.tar.bz2
#44 code style
--HG-- extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%4061
Diffstat (limited to 'js/wwwsqldesigner.js')
-rw-r--r--js/wwwsqldesigner.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/wwwsqldesigner.js b/js/wwwsqldesigner.js
index 6740a89..62f37e7 100644
--- a/js/wwwsqldesigner.js
+++ b/js/wwwsqldesigner.js
@@ -2326,7 +2326,7 @@ SQL.Designer.prototype.getTypeIndex = function(label) {
var types = window.DATATYPES.getElementsByTagName("type");
for (var i=0;i<types.length;i++) {
var l = types[i].getAttribute("label");
- if (l) this.typeIndex[l] = i;
+ if (l) { this.typeIndex[l] = i; }
}
}
return this.typeIndex[label];
@@ -2334,8 +2334,8 @@ SQL.Designer.prototype.getTypeIndex = function(label) {
SQL.Designer.prototype.getFKTypeFor = function(typeIndex) {
if (!this.fkTypeFor) {
- var types = window.DATATYPES.getElementsByTagName("type");
this.fkTypeFor = {};
+ var types = window.DATATYPES.getElementsByTagName("type");
for (var i=0;i<types.length;i++) {
this.fkTypeFor[i] = i;
var fk = types[i].getAttribute("fk");