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 <[email protected]> Authored: Mon Jun 22 11:36:26 2015 -0700 Committer: Xi Wang <[email protected]> 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('[email protected]', this, this.calculateVal); this.addObserver('[email protected]', this, this.checkSelectedItemsCount); if (this.isValueCompatibleWithWidget()) {
