Skip to content

Commit

Permalink
Fix create child in menu BNN-369 #resolve (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel11pires authored and sergiofbsilva committed Nov 20, 2018
1 parent 18872c2 commit 2ca960b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bennu-admin/src/main/webapp/bennu-admin/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ app.controller('MenuController', [ '$scope', '$state', '$http', function($scope,
$scope.createChild = function(root) {
var mls = {};
mls[Bennu.locale.tag] = root ? 'New Sub-Root' : 'New Entry';
var newChild = { title: mls, description: {}, visible: true, accessExpression: 'anyone', functionality: false, parent: $scope.selected.id, subRoot: root };
var newChild = { title: mls, description: {}, visible: true, accessExpression: 'anyone', functionality: false, parent: $scope.selected.id, subRoot: root, supportConfig: $("#tree").fancytree("getTree").getFirstChild().data.item.supportConfig, supportConfigs: $("#tree").fancytree("getTree").getFirstChild().data.item.supportConfigs};
add(newChild, $scope.selected.node).setActive(true);
}
$scope.addSupport = function() {
Expand Down

0 comments on commit 2ca960b

Please sign in to comment.