mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 05:47:38 -02:30
Fixed JS compile errors.
This commit is contained in:
@@ -181,8 +181,8 @@ function($routeParams, Empty, InventoryHosts, GetBasePath, SearchInit, PaginateI
|
|||||||
scope.removePostRefresh = scope.$on('PostRefresh', function(e, set) {
|
scope.removePostRefresh = scope.$on('PostRefresh', function(e, set) {
|
||||||
if (set === 'hosts') {
|
if (set === 'hosts') {
|
||||||
for (var i=0; i < scope.hosts.length; i++) {
|
for (var i=0; i < scope.hosts.length; i++) {
|
||||||
//Set tooltip for host enabled flag
|
//Set tooltip for host enabled flag
|
||||||
scope.hosts[i].enabled_flag = scope.hosts[i].enabled;
|
scope.hosts[i].enabled_flag = scope.hosts[i].enabled;
|
||||||
}
|
}
|
||||||
SetStatus({ scope: scope });
|
SetStatus({ scope: scope });
|
||||||
setTimeout(function() { ApplyEllipsis('#hosts_table .host-name a'); }, 2500);
|
setTimeout(function() { ApplyEllipsis('#hosts_table .host-name a'); }, 2500);
|
||||||
@@ -269,7 +269,7 @@ function(GetBasePath, Rest, Wait, ProcessErrors, Alert, Find, SetEnabledMsg) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Alert('Action Not Allowed', 'This host is managed by an external cloud source. Disable it at the external source, ' +
|
Alert('Action Not Allowed', 'This host is managed by an external cloud source. Disable it at the external source, ' +
|
||||||
'and then run an inventory sync to update Tower with the new status.', 'alert-info');
|
'then run an inventory sync to update Tower with the new status.', 'alert-info');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}])
|
}])
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ angular.module('RefreshHelper', ['RestServices', 'Utilities', 'PaginationHelpers
|
|||||||
if (!deferWaitStop) {
|
if (!deferWaitStop) {
|
||||||
Wait('stop');
|
Wait('stop');
|
||||||
}
|
}
|
||||||
scope.$emit('PostRefresh', set);scope.$emit('PostRefresh');
|
scope.$emit('PostRefresh', set);
|
||||||
})
|
})
|
||||||
.error(function (data, status) {
|
.error(function (data, status) {
|
||||||
scope[iterator + 'HoldInput'] = false;
|
scope[iterator + 'HoldInput'] = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user