Tree refresh is working for the Group Add and Group Edit buttons. Tree is refreshed and opened back to the previously selected node and the host view is left in the correct state.

This commit is contained in:
chouseknecht
2013-06-03 18:05:34 -04:00
parent eca7b3888f
commit a29e60b533
3 changed files with 88 additions and 53 deletions

View File

@@ -380,9 +380,13 @@ function InventoriesEdit ($scope, $rootScope, $compile, $location, $log, $routeP
}
scope.$on('NodeSelect', function(e, n) {
// Respond to user clicking on a tree node
var node = $('li[id="' + n.attr.id + '"]');
var type = node.attr('type');
var url;
scope['selectedNode'] = node;
$('#tree-view').jstree('open_node',node);
if (type == 'group') {
url = node.attr('all');