diff options
author | Robert Kowalski <rok@kowalski.gd> | 2014-03-21 17:25:17 +0100 |
---|---|---|
committer | Robert Kowalski <rok@kowalski.gd> | 2014-03-21 17:27:50 +0100 |
commit | e7763dfb2d2ad8119ee883002e60ec7edde791c7 (patch) | |
tree | 9e7642806f5345c82ad6c13721376e80a3f266c9 | |
parent | f2153c0f99050775e3ee1ddb94d9e68848010361 (diff) | |
download | couchdb-e7763dfb2d2ad8119ee883002e60ec7edde791c7.tar.gz |
Fauxton: fix intendation
-rw-r--r-- | src/fauxton/app/addons/config/views.js | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/src/fauxton/app/addons/config/views.js b/src/fauxton/app/addons/config/views.js index 8453d90b4..9f427ac14 100644 --- a/src/fauxton/app/addons/config/views.js +++ b/src/fauxton/app/addons/config/views.js @@ -81,27 +81,28 @@ function(app, FauxtonAPI, Config, Components) { }, saveAndRender: function (event) { var options = {}; - $input = this.$(event.currentTarget).parents('td').find(".js-value-input"); - options[$input.attr('name')] = $input.val(); - - if ($input.attr('name')==='name'){ - if (this.uniqueName($input.val())){ - this.error = FauxtonAPI.addNotification({ - msg: "This config already exists, enter a unique name", - type: "error", - clear: true - }); - } else { - var newModel = this.model.clone(); - newModel.save(options); - this.model.destroy(); - this.model = newModel; - this.render(); - } + $input = this.$(event.currentTarget).parents('td').find(".js-value-input"); + + options[$input.attr('name')] = $input.val(); + + if ($input.attr('name')==='name'){ + if (this.uniqueName($input.val())){ + this.error = FauxtonAPI.addNotification({ + msg: "This config already exists, enter a unique name", + type: "error", + clear: true + }); } else { + var newModel = this.model.clone(); + newModel.save(options); + this.model.destroy(); + this.model = newModel; + this.render(); + } + } else { this.model.save(options); this.render(); - } + } } }); |