Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5E31010C55 for ; Tue, 1 Apr 2014 17:43:04 +0000 (UTC) Received: (qmail 63210 invoked by uid 500); 1 Apr 2014 17:42:10 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 62467 invoked by uid 500); 1 Apr 2014 17:41:51 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 62116 invoked by uid 99); 1 Apr 2014 17:41:43 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 17:41:43 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id AF7449240C7; Tue, 1 Apr 2014 17:41:43 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: djc@apache.org To: commits@couchdb.apache.org Date: Tue, 01 Apr 2014 17:41:55 -0000 Message-Id: <311ba83c88ed44d28a9a32ca4200e8a1@git.apache.org> In-Reply-To: <3cf0cb21133d4c18b22d7e4745e70cb6@git.apache.org> References: <3cf0cb21133d4c18b22d7e4745e70cb6@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [13/50] [abbrv] couchdb commit: updated refs/heads/1.6.x to d2ac597 Fauxton: fix intendation Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/e7763dfb Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/e7763dfb Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/e7763dfb Branch: refs/heads/1.6.x Commit: e7763dfb2d2ad8119ee883002e60ec7edde791c7 Parents: f2153c0 Author: Robert Kowalski Authored: Fri Mar 21 17:25:17 2014 +0100 Committer: Robert Kowalski Committed: Fri Mar 21 17:27:50 2014 +0100 ---------------------------------------------------------------------- src/fauxton/app/addons/config/views.js | 37 +++++++++++++++-------------- 1 file changed, 19 insertions(+), 18 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/e7763dfb/src/fauxton/app/addons/config/views.js ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/config/views.js b/src/fauxton/app/addons/config/views.js index 8453d90..9f427ac 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(); - } + } } });