From 7a10199a1eb33f5becfaf1b11b1a3124ec70760c Mon Sep 17 00:00:00 2001 From: chouseknecht Date: Mon, 29 Jul 2013 09:50:25 -0400 Subject: [PATCH] AC-301 attempting to prevent content flash between logins --- awx/ui/static/lib/ansible/authenticate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/static/lib/ansible/authenticate.js b/awx/ui/static/lib/ansible/authenticate.js index b08c183159..f266a367f2 100644 --- a/awx/ui/static/lib/ansible/authenticate.js +++ b/awx/ui/static/lib/ansible/authenticate.js @@ -68,7 +68,7 @@ angular.module('AuthService', ['ngCookies']) logout: function() { // the following puts our primary scope up for garbage collection, which // should prevent content flash from the prior user. - var scope = angular.element(getElementById('main-view')).scope(); + var scope = angular.element(document.getElementById('main-view')).scope(); scope.$destroy(); // but just in case, clear the organization bits