Return-Path: X-Original-To: apmail-incubator-ambari-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7D0B106E5 for ; Sat, 27 Apr 2013 03:03:08 +0000 (UTC) Received: (qmail 78570 invoked by uid 500); 27 Apr 2013 03:03:08 -0000 Delivered-To: apmail-incubator-ambari-commits-archive@incubator.apache.org Received: (qmail 78538 invoked by uid 500); 27 Apr 2013 03:03:08 -0000 Mailing-List: contact ambari-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-commits@incubator.apache.org Received: (qmail 78531 invoked by uid 99); 27 Apr 2013 03:03:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Apr 2013 03:03:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Apr 2013 03:03:06 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 3F9E32388A64; Sat, 27 Apr 2013 03:02:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1476473 - /incubator/ambari/trunk/ambari-web/app/views/common/configs/services_config.js Date: Sat, 27 Apr 2013 03:02:45 -0000 To: ambari-commits@incubator.apache.org From: yusaku@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130427030245.3F9E32388A64@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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() != "") */