incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject svn commit: r1362233 - in /incubator/ambari/branches/branch-0.9: CHANGES.txt hmc/js/assignMasters.js
Date Mon, 16 Jul 2012 20:10:39 GMT
Author: yusaku
Date: Mon Jul 16 20:10:39 2012
New Revision: 1362233

URL: http://svn.apache.org/viewvc?rev=1362233&view=rev
Log:
AMBARI-637. Cluster Install Wizard: the 7-step nav goes out of sync if the user goes back
to Step 3 and moves forward (Contributed by Yusaku)

Modified:
    incubator/ambari/branches/branch-0.9/CHANGES.txt
    incubator/ambari/branches/branch-0.9/hmc/js/assignMasters.js

Modified: incubator/ambari/branches/branch-0.9/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-0.9/CHANGES.txt?rev=1362233&r1=1362232&r2=1362233&view=diff
==============================================================================
--- incubator/ambari/branches/branch-0.9/CHANGES.txt (original)
+++ incubator/ambari/branches/branch-0.9/CHANGES.txt Mon Jul 16 20:10:39 2012
@@ -6,6 +6,9 @@ characters wide.
 
 Release 0.9.0 - unreleased
 
+  AMBARI-637. Cluster Install Wizard: the 7-step nav goes out of sync if
+  the user goes back to Step 3 and moves forward (yusaku) 
+
   AMBARI-632. Ensure that mysql connector jar is available to sqoop (hitesh
 via vikram)
 

Modified: incubator/ambari/branches/branch-0.9/hmc/js/assignMasters.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-0.9/hmc/js/assignMasters.js?rev=1362233&r1=1362232&r2=1362233&view=diff
==============================================================================
--- incubator/ambari/branches/branch-0.9/hmc/js/assignMasters.js (original)
+++ incubator/ambari/branches/branch-0.9/hmc/js/assignMasters.js Mon Jul 16 20:10:39 2012
@@ -23,7 +23,6 @@ function AssignMasters() {
 
   var managerHostName;
   var allHosts;
-  var registeredAssignHostsEventHandlers = false;
   
   function getNodeInfo(nodeName) {
     // globalYui.log("nodename: " + nodeName);
@@ -124,9 +123,8 @@ function AssignMasters() {
     globalYui.log("Render assign hosts data " + globalYui.Lang.dump(clusterInfo));
     globalYui.one('#assignHostsCoreDivId').setStyle("display", "block");
     globalClusterName = clusterInfo.clusterName;
-  
-    if( !registeredAssignHostsEventHandlers ) {
-  
+
+      globalYui.one('#selectServiceMastersSubmitButtonId').detach();
       globalYui.one('#selectServiceMastersSubmitButtonId').on('click', function (e) {
         e.target.set('disabled', true);
   
@@ -196,9 +194,6 @@ function AssignMasters() {
         });
       });
   
-      registeredAssignHostsEventHandlers = true;
-    }
-  
     allHosts = clusterInfo.allHosts;
     managerHostName = clusterInfo.managerHostName;
     
@@ -253,8 +248,9 @@ function AssignMasters() {
     
     // prevValue is used to undo user selection in case we prevent the user from assigning
a service
     var prevValue = '';
-    
-    $('select').click(function() {
+
+    $('#masterServicesToHosts select').off('click');
+    $('#masterServicesToHosts select').click(function() {
       prevValue = $(this).val();
     }).change(function(event) {
   	  var masterName = $(this).attr('name');



Mime
View raw message