Return-Path: X-Original-To: apmail-incubator-ambari-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 420F6108DF for ; Thu, 18 Apr 2013 04:42:55 +0000 (UTC) Received: (qmail 30954 invoked by uid 500); 18 Apr 2013 04:42:54 -0000 Delivered-To: apmail-incubator-ambari-commits-archive@incubator.apache.org Received: (qmail 30875 invoked by uid 500); 18 Apr 2013 04:42:53 -0000 Mailing-List: contact ambari-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-commits@incubator.apache.org Received: (qmail 30847 invoked by uid 99); 18 Apr 2013 04:42:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Apr 2013 04:42:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Apr 2013 04:42:50 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 0377B23889FA; Thu, 18 Apr 2013 04:42:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1469154 - in /incubator/ambari/trunk: CHANGES.txt ambari-web/app/controllers/wizard/step3_controller.js ambari-web/app/routes/add_host_routes.js ambari-web/app/routes/installer.js ambari-web/app/templates/wizard/step3.hbs Date: Thu, 18 Apr 2013 04:42:28 -0000 To: ambari-commits@incubator.apache.org From: yusaku@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130418044229.0377B23889FA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: yusaku Date: Thu Apr 18 04:42:28 2013 New Revision: 1469154 URL: http://svn.apache.org/r1469154 Log: AMBARI-1960. Back button can be pressed while host registration is taking process, even though the button seems disabled. (yusaku) Modified: incubator/ambari/trunk/CHANGES.txt incubator/ambari/trunk/ambari-web/app/controllers/wizard/step3_controller.js incubator/ambari/trunk/ambari-web/app/routes/add_host_routes.js incubator/ambari/trunk/ambari-web/app/routes/installer.js incubator/ambari/trunk/ambari-web/app/templates/wizard/step3.hbs Modified: incubator/ambari/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1469154&r1=1469153&r2=1469154&view=diff ============================================================================== --- incubator/ambari/trunk/CHANGES.txt (original) +++ incubator/ambari/trunk/CHANGES.txt Thu Apr 18 04:42:28 2013 @@ -749,6 +749,9 @@ Trunk (unreleased changes): BUG FIXES + AMBARI-1960. "Back" button can be pressed while host registration is taking + process, even though the button seems disabled. (yusaku) + AMBARI-1959. Cannot login to Ambari after login failure. (yusaku) AMBARI-1957. Hosts table: whether the alert filter is in effect or not is Modified: incubator/ambari/trunk/ambari-web/app/controllers/wizard/step3_controller.js URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/wizard/step3_controller.js?rev=1469154&r1=1469153&r2=1469154&view=diff ============================================================================== --- incubator/ambari/trunk/ambari-web/app/controllers/wizard/step3_controller.js (original) +++ incubator/ambari/trunk/ambari-web/app/controllers/wizard/step3_controller.js Thu Apr 18 04:42:28 2013 @@ -948,6 +948,13 @@ App.WizardStep3Controller = Em.Controlle if (this.parseHostInfo(mockHosts, selectedHosts)) { // this.saveHostInfoToDb(); } + }, + + back: function () { + if (this.get('isInstallInProgress')) { + return false; + } + App.router.send('back'); } }); Modified: incubator/ambari/trunk/ambari-web/app/routes/add_host_routes.js URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/routes/add_host_routes.js?rev=1469154&r1=1469153&r2=1469154&view=diff ============================================================================== --- incubator/ambari/trunk/ambari-web/app/routes/add_host_routes.js (original) +++ incubator/ambari/trunk/ambari-web/app/routes/add_host_routes.js Thu Apr 18 04:42:28 2013 @@ -128,11 +128,8 @@ module.exports = Em.Route.extend({ controller.connectOutlet('wizardStep3', controller.get('content')); }) }, - back: function(router, event){ - //if install not in progress - if(!event.contexts[0].get("isInstallInProgress")){ - router.transitionTo('step1'); - } + back: function(router){ + router.transitionTo('step1'); }, exit: function (router) { router.get('wizardStep3Controller').set('stopBootstrap', true); Modified: incubator/ambari/trunk/ambari-web/app/routes/installer.js URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/routes/installer.js?rev=1469154&r1=1469153&r2=1469154&view=diff ============================================================================== --- incubator/ambari/trunk/ambari-web/app/routes/installer.js (original) +++ incubator/ambari/trunk/ambari-web/app/routes/installer.js Thu Apr 18 04:42:28 2013 @@ -149,11 +149,8 @@ module.exports = Em.Route.extend({ controller.loadAllPriorSteps(); controller.connectOutlet('wizardStep3', controller.get('content')); }, - back: function(router, event){ - //if install not in progress - if(!$(event.target).attr('disabled')){ + back: function(router){ router.transitionTo('step2'); - } }, next: function (router, context) { var installerController = router.get('installerController'); Modified: incubator/ambari/trunk/ambari-web/app/templates/wizard/step3.hbs URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/templates/wizard/step3.hbs?rev=1469154&r1=1469153&r2=1469154&view=diff ============================================================================== --- incubator/ambari/trunk/ambari-web/app/templates/wizard/step3.hbs (original) +++ incubator/ambari/trunk/ambari-web/app/templates/wizard/step3.hbs Thu Apr 18 04:42:28 2013 @@ -138,7 +138,7 @@ {{/if}} {{/if}} \ No newline at end of file