From 3a60955701e10fb05c70a8407f02e927fe863a0a Mon Sep 17 00:00:00 2001 From: loro2 <51793898+loro2@users.noreply.github.com> Date: Mon, 29 Jul 2019 19:15:46 +0200 Subject: [PATCH] revert autoindent in legacy code --- js/options.js | 42 +++++++++++++++++++++--------------------- js/row.js | 20 ++++++++++---------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/js/options.js b/js/options.js index d6a360b..8c39a47 100644 --- a/js/options.js +++ b/js/options.js @@ -1,17 +1,17 @@ /* --------------------- options ------------ */ -SQL.Options = function (owner) { +SQL.Options = function(owner) { this.owner = owner; this.dom = { - container: OZ.$("opts"), - btn: OZ.$("options") + container:OZ.$("opts"), + btn:OZ.$("options") } this.dom.btn.value = _("options"); this.save = this.save.bind(this); this.build(); } -SQL.Options.prototype.build = function () { +SQL.Options.prototype.build = function() { this.dom.optionlocale = OZ.$("optionlocale"); this.dom.optiondb = OZ.$("optiondb"); this.dom.optionsnap = OZ.$("optionsnap"); @@ -22,8 +22,8 @@ SQL.Options.prototype.build = function () { this.dom.optionshowsize = OZ.$("optionshowsize"); this.dom.optionshowtype = OZ.$("optionshowtype"); - var ids = ["language", "db", "snap", "pattern", "style", "hide", "vector", "showsize", "showtype", "optionsnapnotice", "optionpatternnotice", "optionsnotice"]; - for (var i = 0; i < ids.length; i++) { + var ids = ["language","db","snap","pattern","style","hide","vector","showsize","showtype","optionsnapnotice","optionpatternnotice","optionsnotice"]; + for (var i=0;i"; } @@ -351,8 +351,8 @@ SQL.Row.prototype.toXML = function() { xml += '\n'; } - if (this.data.comment) { - xml += ""+SQL.escape(this.data.comment)+"\n"; + if (this.data.comment) { + xml += ""+SQL.escape(this.data.comment)+"\n"; } xml += "\n"; @@ -385,7 +385,7 @@ SQL.Row.prototype.fromXML = function(node) { var elm = DATATYPES.getElementsByTagName("type")[obj.type]; var d = node.getElementsByTagName("default"); - if (d.length && d[0].firstChild) { + if (d.length && d[0].firstChild) { var def = d[0].firstChild.nodeValue; obj.def = def; var q = elm.getAttribute("quote"); @@ -422,7 +422,7 @@ SQL.Row.prototype.isKey = function() { } SQL.Row.prototype.enter = function(e) { - if (e.keyCode == 13) { + if (e.keyCode == 13) { this.collapse(); } }