Browse Source

AMBARI-10995. Not correct behavior of hosts combobox on Assign Masters page. (akovalenko)

Aleksandr Kovalenko 10 years ago
parent
commit
629d8cd5c4

+ 3 - 3
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();
   }
 

+ 2 - 2
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;
     });
   });