Return-Path: X-Original-To: apmail-ambari-commits-archive@www.apache.org Delivered-To: apmail-ambari-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 A9A5318FF3 for ; Mon, 22 Jun 2015 18:38:04 +0000 (UTC) Received: (qmail 35692 invoked by uid 500); 22 Jun 2015 18:38:04 -0000 Delivered-To: apmail-ambari-commits-archive@ambari.apache.org Received: (qmail 35665 invoked by uid 500); 22 Jun 2015 18:38:04 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 35656 invoked by uid 99); 22 Jun 2015 18:38:04 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2015 18:38:04 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 79E8BE10A4; Mon, 22 Jun 2015 18:38:04 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: xiwang@apache.org To: commits@ambari.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: ambari git commit: AMBARI-11796-2. List-widget strange behavior state fix. (Richard Zang via xiwang) Date: Mon, 22 Jun 2015 18:38:04 +0000 (UTC) Repository: ambari Updated Branches: refs/heads/branch-2.1 64beaa345 -> 7f1fd18fb AMBARI-11796-2. List-widget strange behavior state fix. (Richard Zang via xiwang) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7f1fd18f Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7f1fd18f Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7f1fd18f Branch: refs/heads/branch-2.1 Commit: 7f1fd18fb1d283c67265018f80f2279408372a79 Parents: 64beaa3 Author: Xi Wang Authored: Mon Jun 22 11:36:26 2015 -0700 Committer: Xi Wang Committed: Mon Jun 22 11:37:45 2015 -0700 ---------------------------------------------------------------------- .../app/views/common/configs/widgets/list_config_widget_view.js | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/7f1fd18f/ambari-web/app/views/common/configs/widgets/list_config_widget_view.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/views/common/configs/widgets/list_config_widget_view.js b/ambari-web/app/views/common/configs/widgets/list_config_widget_view.js index a5cf62a..0973898 100644 --- a/ambari-web/app/views/common/configs/widgets/list_config_widget_view.js +++ b/ambari-web/app/views/common/configs/widgets/list_config_widget_view.js @@ -118,6 +118,7 @@ App.ListConfigWidgetView = App.ConfigWidgetView.extend({ didInsertElement: function () { this.initPopover(); this._super(); + this.toggleWidgetState(); this.addObserver('options.@each.isSelected', this, this.calculateVal); this.addObserver('options.@each.isSelected', this, this.checkSelectedItemsCount); if (this.isValueCompatibleWithWidget()) {