Repository: ambari Updated Branches: refs/heads/trunk 57759d049 -> 629d8cd5c
AMBARI-10995. Not correct behavior of hosts combobox on Assign Masters page. (akovalenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/629d8cd5 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/629d8cd5 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/629d8cd5 Branch: refs/heads/trunk Commit: 629d8cd5c496d6bb600994e93aa4fccbf3f2f7f1 Parents: 57759d0 Author: Aleksandr Kovalenko <akovale...@hortonworks.com> Authored: Thu May 7 15:29:56 2015 +0300 Committer: Aleksandr Kovalenko <akovale...@hortonworks.com> Committed: Thu May 7 16:42:50 2015 +0300 ---------------------------------------------------------------------- ambari-web/app/views/common/assign_master_components_view.js | 6 +++--- ambari-web/test/views/wizard/step5_view_test.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/629d8cd5/ambari-web/app/views/common/assign_master_components_view.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/views/common/assign_master_components_view.js b/ambari-web/app/views/common/assign_master_components_view.js index 46558df..f8f41ac 100644 --- a/ambari-web/app/views/common/assign_master_components_view.js +++ b/ambari-web/app/views/common/assign_master_components_view.js @@ -137,10 +137,10 @@ App.SelectHostView = Em.Select.extend(App.SelectHost, { }.observes('controller.hostNameCheckTrigger'), /** - * On click handler - * @method click + * On change DOM event handler + * @method change */ - click: function () { + change: function () { this.initContent(); } http://git-wip-us.apache.org/repos/asf/ambari/blob/629d8cd5/ambari-web/test/views/wizard/step5_view_test.js ---------------------------------------------------------------------- diff --git a/ambari-web/test/views/wizard/step5_view_test.js b/ambari-web/test/views/wizard/step5_view_test.js index 89789a9..625eb22 100644 --- a/ambari-web/test/views/wizard/step5_view_test.js +++ b/ambari-web/test/views/wizard/step5_view_test.js @@ -62,7 +62,7 @@ describe('App.SelectHostView', function() { }); }); - describe('#click', function() { + describe('#change', function() { beforeEach(function() { sinon.stub(view, 'initContent', Em.K); @@ -75,7 +75,7 @@ describe('App.SelectHostView', function() { }); it('should call initContent', function() { - view.click(); + view.change(); expect(view.initContent.calledOnce).to.be.true; }); });