소스 검색

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

Aleksandr Kovalenko 10 년 전
부모
커밋
629d8cd5c4
2개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 3
      ambari-web/app/views/common/assign_master_components_view.js
  2. 2 2
      ambari-web/test/views/wizard/step5_view_test.js

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