Commit 57fa7aa1 authored by Sascha Pfeiffer's avatar Sascha Pfeiffer

Fix move item

Signed-off-by: default avatarSascha Pfeiffer <sascha.pfeiffer@psono.com>
parent e4512e86
......@@ -143,6 +143,12 @@
} else {
path.push(nodeScope.node[property]);
}
while (nodeScope.$parent && nodeScope.$parent.node) {
if (!nodeScope.node.hasOwnProperty('id') || !nodeScope.$parent.node.hasOwnProperty('id') || nodeScope.node.id !== nodeScope.$parent.node.id) {
break;
}
nodeScope = nodeScope.$parent;
}
nodeScope = nodeScope.$parent;
}
return path.reverse();
......@@ -293,7 +299,6 @@
if (collapsible) {
controller.toggleExpanded(scope.node);
}
controller.selectNode(scope.node, getPropertyPath(), getPropertyPath(idProperty));
};
......
......@@ -14,7 +14,7 @@
var on_open = function(dropdown_menu_id) {
if (opened_dropdown_menu !== '') {
angular.element('#' + opened_dropdown_menu).parent().removeClass('open');
//angular.element('#' + opened_dropdown_menu).parent().removeClass('open');
}
opened_dropdown_menu = dropdown_menu_id;
};
......
......@@ -832,4 +832,4 @@
app.factory("managerWidget", ['$rootScope', '$window', '$uibModal', 'managerDatastorePassword', 'managerShare', 'managerSecret',
'managerShareLink', 'managerSecretLink', 'itemBlueprint', 'cryptoLibrary', managerWidget]);
}(angular));
\ No newline at end of file
}(angular));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment