You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2014/09/08 15:24:17 UTC

[3/4] fauxton commit: updated refs/heads/master to bacf6fd

Config: remove unused this.error


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/410b055f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/410b055f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/410b055f

Branch: refs/heads/master
Commit: 410b055f27a8d8de743e7bedc461c5837da925a7
Parents: 0ad739c
Author: Robert Kowalski <ro...@kowalski.gd>
Authored: Fri Sep 5 19:15:55 2014 +0200
Committer: Robert Kowalski <ro...@kowalski.gd>
Committed: Mon Sep 8 15:25:41 2014 +0200

----------------------------------------------------------------------
 app/addons/config/views.js | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/410b055f/app/addons/config/views.js
----------------------------------------------------------------------
diff --git a/app/addons/config/views.js b/app/addons/config/views.js
index 71b4839..87b57c9 100644
--- a/app/addons/config/views.js
+++ b/app/addons/config/views.js
@@ -85,7 +85,7 @@ function(app, FauxtonAPI, Config, Components) {
         sectionName = this.model.get("section");
         nameInSectionExists = this.collection.findEntryInSection(sectionName, $input.val());
         if (nameInSectionExists) {
-          this.error = FauxtonAPI.addNotification({
+          FauxtonAPI.addNotification({
             msg: "This config already exists, enter a unique name",
             type: "error",
             clear: true
@@ -222,14 +222,16 @@ function(app, FauxtonAPI, Config, Components) {
         this.submitForm();
       }
     },
-    errorMessage: function(msg){
-      this.error = FauxtonAPI.addNotification({
-          msg: msg,
-          type: "error",
-          clear: true,
-          selector: ".js-form-error-config"
+
+    errorMessage: function (msg) {
+      FauxtonAPI.addNotification({
+        msg: msg,
+        type: "error",
+        clear: true,
+        selector: ".js-form-error-config"
       });
     },
+
     show: function(){
       this.$el.modal({show:true});
     },