mirror of
https://github.com/ansible/awx.git
synced 2026-07-29 08:59:55 -02:30
AC-1321 disappearing host variables
Bringing over fix applied in 1.4.11.
This commit is contained in:
@@ -615,7 +615,19 @@ function($rootScope, $location, $log, $routeParams, Rest, Alert, HostForm, Gener
|
||||
scope.removeSaveCompleted();
|
||||
}
|
||||
scope.removeSaveCompleted = scope.$on('saveCompleted', function() {
|
||||
scope.cancelModal();
|
||||
if (scope.removeSaveCompleted) {
|
||||
scope.removeSaveCompleted();
|
||||
}
|
||||
scope.removeSaveCompleted = scope.$on('saveCompleted', function() {
|
||||
try {
|
||||
$('#host-modal-dialog').dialog('close');
|
||||
}
|
||||
catch(err) {
|
||||
// ignore
|
||||
}
|
||||
group_scope.refreshHosts();
|
||||
scope.$destroy();
|
||||
});
|
||||
});
|
||||
|
||||
// Save changes to the parent
|
||||
@@ -673,7 +685,6 @@ function($rootScope, $location, $log, $routeParams, Rest, Alert, HostForm, Gener
|
||||
catch(err) {
|
||||
// ignore
|
||||
}
|
||||
group_scope.refreshHosts();
|
||||
scope.$destroy();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user