Home hosts page

Fixed broken edit dialog
This commit is contained in:
Chris Houseknecht
2014-07-02 20:46:56 -04:00
parent 061d1acaa5
commit 67daa1599b
3 changed files with 13 additions and 3 deletions

View File

@@ -623,6 +623,10 @@ function HomeHosts($scope, $location, $routeParams, HomeHostList, GenerateList,
LoadBreadCrumbs(); LoadBreadCrumbs();
$scope.refreshHosts = function() {
$scope.search(list.iterator);
};
$scope.viewJob = function(id) { $scope.viewJob = function(id) {
ViewJob({ scope: $scope, id: id }); ViewJob({ scope: $scope, id: id });
}; };
@@ -649,7 +653,7 @@ function HomeHosts($scope, $location, $routeParams, HomeHostList, GenerateList,
}); });
if (host) { if (host) {
HostsEdit({ HostsEdit({
scope: $scope, host_scope: $scope,
host_id: host_id, host_id: host_id,
inventory_id: host.inventory, inventory_id: host.inventory,
group_id: null, group_id: null,

View File

@@ -621,7 +621,12 @@ function($rootScope, $location, $log, $routeParams, Rest, Alert, HostForm, Gener
catch(err) { catch(err) {
// ignore // ignore
} }
group_scope.refreshHosts(); if (group_scope && group_scope.refreshHosts) {
group_scope.refreshHosts();
}
if (parent_scope.refreshHosts) {
parent_scope.refreshHosts();
}
scope.$destroy(); scope.$destroy();
}); });

View File

@@ -23,3 +23,4 @@
<div ng-include="'/static/partials/schedule_dialog.html'"></div> <div ng-include="'/static/partials/schedule_dialog.html'"></div>
<div ng-include="'/static/partials/logviewer.html'"></div> <div ng-include="'/static/partials/logviewer.html'"></div>
<div id="host-modal-dialog" style="display: none;" class="dialog-content"></div>