Fix reloading query editor with no target's info. Some refactoring.

This commit is contained in:
Alexander Zobnin
2015-05-07 16:52:05 +03:00
parent a2e1e0dfc9
commit 78fb8fdfec
2 changed files with 82 additions and 78 deletions

View File

@@ -25,7 +25,7 @@ function (angular, _) {
};
// Update host group, host, application and item lists
//$scope.updateHostGroupList();
$scope.updateHostGroupList();
$scope.updateHostList();
if ($scope.target.host) {
$scope.updateAppList($scope.target.host.hostid);