mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
local_settings
Fixed more bits where undefined $AnsibleConfig was breaking things.
This commit is contained in:
parent
7139b5b25a
commit
f8d70f03ea
@ -413,7 +413,7 @@ angular.module('Tower', [
|
||||
function ($compile, $cookieStore, $rootScope, $log, CheckLicense, $location, Authorization, LoadBasePaths, ViewLicense,
|
||||
Timer, ClearScope, HideStream, Socket, LoadConfig) {
|
||||
|
||||
var e, html, sock, checkCount;
|
||||
var e, html, sock, checkCount = 0;
|
||||
|
||||
function detectBrowser() {
|
||||
var ua = window.navigator.userAgent,
|
||||
@ -586,7 +586,7 @@ angular.module('Tower', [
|
||||
else {
|
||||
checkCount = 0;
|
||||
}
|
||||
}, 3000);
|
||||
}, 5000);
|
||||
});
|
||||
|
||||
LoadConfig();
|
||||
|
||||
@ -17,7 +17,7 @@ angular.module('RestServices', ['ngCookies', 'AuthService'])
|
||||
this.url = url;
|
||||
},
|
||||
checkExpired: function () {
|
||||
return $rootScope.sessionTimer.isExpired();
|
||||
return ($rootScope.sessionTimer) ? $rootScope.sessionTimer.isExpired() : false;
|
||||
},
|
||||
pReplace: function () {
|
||||
//in our url, replace :xx params with a value, assuming
|
||||
|
||||
@ -233,7 +233,7 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job
|
||||
*/
|
||||
.directive('awToolTip', function() {
|
||||
return function(scope, element, attrs) {
|
||||
var delay = (attrs.delay !== undefined && attrs.delay !== null) ? attrs.delay : $AnsibleConfig.tooltip_delay,
|
||||
var delay = (attrs.delay !== undefined && attrs.delay !== null) ? attrs.delay : ($AnsibleConfig) ? $AnsibleConfig.tooltip_delay : {show: 500, hide: 100},
|
||||
placement;
|
||||
if (attrs.awTipPlacement) {
|
||||
placement = attrs.awTipPlacement;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user