You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2013/04/27 05:02:45 UTC

svn commit: r1476473 - /incubator/ambari/trunk/ambari-web/app/views/common/configs/services_config.js

Author: yusaku
Date: Sat Apr 27 03:02:44 2013
New Revision: 1476473

URL: http://svn.apache.org/r1476473
Log:
AMBARI-2027. Add validation checks for Add Property on custom site configs. (yusaku)

Modified:
    incubator/ambari/trunk/ambari-web/app/views/common/configs/services_config.js

Modified: incubator/ambari/trunk/ambari-web/app/views/common/configs/services_config.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/common/configs/services_config.js?rev=1476473&r1=1476472&r2=1476473&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/common/configs/services_config.js (original)
+++ incubator/ambari/trunk/ambari-web/app/views/common/configs/services_config.js Sat Apr 27 03:02:44 2013
@@ -211,7 +211,6 @@ App.ServiceConfigsByCategoryView = Ember
         }
       }.observes("name")
     });
-    serviceConfigObj.observeAddPropertyValue();
 
     var category = this.get('category');
     serviceConfigObj.displayType = "advanced";
@@ -233,6 +232,7 @@ App.ServiceConfigsByCategoryView = Ember
       primary: 'Add',
       secondary: 'Cancel',
       onPrimary: function () {
+        serviceConfigObj.observeAddPropertyValue();
         /**
          * For the first entrance use this if (serviceConfigObj.name.trim() != "")
          */