summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Kowalski <rok@kowalski.gd>2014-03-21 17:25:17 +0100
committerRobert Kowalski <rok@kowalski.gd>2014-03-21 17:27:50 +0100
commite7763dfb2d2ad8119ee883002e60ec7edde791c7 (patch)
tree9e7642806f5345c82ad6c13721376e80a3f266c9
parentf2153c0f99050775e3ee1ddb94d9e68848010361 (diff)
downloadcouchdb-e7763dfb2d2ad8119ee883002e60ec7edde791c7.tar.gz
Fauxton: fix intendation
-rw-r--r--src/fauxton/app/addons/config/views.js37
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();
- }
+ }
}
});