From e8d80b5502ab505e9f6935ff4d399ea881fc216e Mon Sep 17 00:00:00 2001 From: mabashian Date: Tue, 3 Apr 2018 18:36:34 -0400 Subject: [PATCH] Fixed event error in firefox when logging in. Removed transition console logs. --- awx/ui/client/src/app.js | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/awx/ui/client/src/app.js b/awx/ui/client/src/app.js index 9a2e6ccc7d..ab64107955 100644 --- a/awx/ui/client/src/app.js +++ b/awx/ui/client/src/app.js @@ -221,7 +221,7 @@ angular if ($rootScope.removeConfigReady) { $rootScope.removeConfigReady(); } - $rootScope.removeConfigReady = $rootScope.$on('ConfigReady', function() { + $rootScope.removeConfigReady = $rootScope.$on('ConfigReady', function(evt) { var list, id; // initially set row edit indicator for crud pages if ($location.$$path && $location.$$path.split("/")[3] && $location.$$path.split("/")[3] === "schedules") { @@ -309,30 +309,14 @@ angular if (trans.to().name && (trans.to().name !== "signIn" && trans.to().name !== "signOut" && trans.to().name !== "license")) { ConfigService.getConfig().then(function() { // if not headed to /login or /logout, then check the license - CheckLicense.test(event); + CheckLicense.test(evt); }); } } activateTab(); }); - $transitions.onCreate({}, function(trans) { - console.log('$onCreate ' +trans.to().name); - }); - - $transitions.onBefore({}, function(trans) { - console.log('$onBefore ' +trans.to().name); - }); - $transitions.onError({}, function(trans) { - - console.log('$onError ' +trans.to().name); - }); - $transitions.onExit({}, function(trans) { - console.log('$onExit ' +trans.to().name); - }); - $transitions.onSuccess({}, function(trans) { - console.log('$onSuccess ' +trans.to().name); if(trans.to() === trans.from()) { // check to see if something other than a search param has changed let toParamsWithoutSearchKeys = {};