You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2012/06/17 03:29:12 UTC

svn commit: r1351032 - in /incubator/ambari/trunk/hmc/html: bootstrapJs.htmli initializeCluster.php

Author: yusaku
Date: Sun Jun 17 01:29:12 2012
New Revision: 1351032

URL: http://svn.apache.org/viewvc?rev=1351032&view=rev
Log:
AMBARI-550. Add support to jump to a specified state in the wizard for development purposes (Contributed by yusaku)

Modified:
    incubator/ambari/trunk/hmc/html/bootstrapJs.htmli
    incubator/ambari/trunk/hmc/html/initializeCluster.php

Modified: incubator/ambari/trunk/hmc/html/bootstrapJs.htmli
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/hmc/html/bootstrapJs.htmli?rev=1351032&r1=1351031&r2=1351032&view=diff
==============================================================================
--- incubator/ambari/trunk/hmc/html/bootstrapJs.htmli (original)
+++ incubator/ambari/trunk/hmc/html/bootstrapJs.htmli Sun Jun 17 01:29:12 2012
@@ -3,11 +3,10 @@
 <script src="../js/ext/yuiCombined.js"></script>
 
 <script type="text/javascript">
-
-  var globalYui = YUI().use("*", function (Y) {
+  var globalYui, Y;
+  globalYui = Y = YUI().use("*", function (Y) {
 
     for (var jsFile in jsFilesToLoad) {
-      /* Load all the files in jsFilesToLoad in one shot. */
       var dynamicJsScript = document.createElement("script");
       dynamicJsScript.type = "text/javascript";
       dynamicJsScript.src = '../' + jsFilesToLoad[jsFile];
@@ -17,5 +16,5 @@
   });
 
   // disable console logging
-  globalYui.log = function () {};
+  Y.log = function () {};
 </script>

Modified: incubator/ambari/trunk/hmc/html/initializeCluster.php
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/hmc/html/initializeCluster.php?rev=1351032&r1=1351031&r2=1351032&view=diff
==============================================================================
--- incubator/ambari/trunk/hmc/html/initializeCluster.php (original)
+++ incubator/ambari/trunk/hmc/html/initializeCluster.php Sun Jun 17 01:29:12 2012
@@ -317,8 +317,11 @@
                 'js/configureServicesUtils.js',
                 'js/configureServices.js',
                 'js/reviewAndDeploy.js',
-                'js/deployProgress.js'     
+                'js/deployProgress.js'
               ];
+
+            // uncomment to allow jumping to a specified stage for development
+            // jsFilesToLoad.push('js/test/initializeClusterTest.js');
             </script>
 
             <?php require "./bootstrapJs.htmli"; ?>