added filters for jstree action types of menu and space in Admin UI
Merge branch 'develop'pull/64/head
commit
a685b8ffbf
|
@ -36,7 +36,7 @@ app.controller('MenuController', function ($scope, $uibModal, MenuService, toast
|
|||
angular.element(menutree).jstree(treedata);
|
||||
//menu tree selected changed event handler
|
||||
angular.element(menutree).on("changed.jstree", function (e, data) {
|
||||
if (data.action === 'select_node') {
|
||||
if (data.action === 'ready' || data.action === 'select_node') {
|
||||
$scope.getMenuChildren(parseInt(data.selected[0]));
|
||||
};
|
||||
});
|
||||
|
|
|
@ -56,8 +56,10 @@ app.controller('SpaceController', function ($scope, $uibModal, SpaceService, Cos
|
|||
angular.element(spacetree).jstree(treedata);
|
||||
//space tree selected changed event handler
|
||||
angular.element(spacetree).on("changed.jstree", function (e, data) {
|
||||
$scope.currentSpaceID = parseInt(data.selected[0]);
|
||||
$scope.getSpaceChildren($scope.currentSpaceID);
|
||||
if (data.action === 'ready' || data.action === 'select_node') {
|
||||
$scope.currentSpaceID = parseInt(data.selected[0]);
|
||||
$scope.getSpaceChildren($scope.currentSpaceID);
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue