Commit 842ea59c authored by Sascha Pfeiffer's avatar Sascha Pfeiffer

some more stuff

Signed-off-by: default avatarSascha Pfeiffer <sascha.pfeiffer@psono.com>
parent 9a0d0357
......@@ -46,9 +46,11 @@
selected: itemBlueprint.get_blueprint($scope.node.type)
};
for (var i = $scope.bp.selected.fields.length - 1; i >= 0; i--) {
if ($scope.data.hasOwnProperty($scope.bp.selected.fields[i].name)) {
$scope.bp.selected.fields[i].value = $scope.data[$scope.bp.selected.fields[i].name];
if ($scope.bp.selected.hasOwnProperty('fields')) {
for (var i = $scope.bp.selected.fields.length - 1; i >= 0; i--) {
if ($scope.data.hasOwnProperty($scope.bp.selected.fields[i].name)) {
$scope.bp.selected.fields[i].value = $scope.data[$scope.bp.selected.fields[i].name];
}
}
}
......
......@@ -585,13 +585,14 @@
' <i class="fa fa-external-link"></i>' +
'</a>' +
'</span>' +
'<span class="node-open-link" ng-if="item.type === \'file\'">' +
'<span class="node-open-link" ng-if="item.type === \'file\' && !offline">' +
'<a href="#" class="btn btn-default" ng-click="$event.preventDefault(); $event.stopPropagation(); clickItem(item, $event)">' +
' <i class="fa fa-download"></i>' +
'</a>' +
'</span>' +
'<span class="node-dropdown" uib-dropdown on-toggle="toggled(open, \'drop_item_\' + item.id)">' +
'<a class="btn btn-default editbutton" href="#" role="button" id="drop_item_{{ ::item.id }}" uib-dropdown-toggle ng-click="$event.stopPropagation()">' +
'<a ng-if="!offline || item.type !== \'file\'"' +
' class="btn btn-default editbutton" href="#" role="button" id="drop_item_{{ ::item.id }}" uib-dropdown-toggle ng-click="$event.stopPropagation()">' +
' <i class="fa fa-cogs"></i>' +
'</a>' +
'<ul class="dropdown-menu dropdown-button-menu" aria-labelledby="drop_item_{{ ::item.id }}" ng-click="$event.preventDefault(); $event.stopPropagation();">' +
......
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