removes the space from 'property editors' folder, removes file commits to App_Plugins in the UI proj.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
]
|
||||
,
|
||||
javascript: [
|
||||
'~/App_Plugins/property editors/relatedlinks/relatedlinks.js',
|
||||
'~/App_Plugins/property editors/mntp/mntp.js'
|
||||
'~/App_Plugins/propertyeditors/relatedlinks/relatedlinks.js',
|
||||
'~/App_Plugins/propertyeditors/mntp/mntp.js'
|
||||
]
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
<div ng-controller="uComponents.Editors.MNTPController">
|
||||
<ul class="nav nav-stacked">
|
||||
<li ng-repeat="node in renderModel">
|
||||
<a href="#" prevent-default ng-click="remove($index)">
|
||||
<i class="icon umb-tree-icon sprTree {{node.icon}}"></i>
|
||||
{{node.name}}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="#" ng-click="openContentPicker()" prevent-default>
|
||||
<i class="icon icon-plus"></i> Add
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<br/><br/>
|
||||
</div>
|
||||
@@ -1,42 +0,0 @@
|
||||
//this controller simply tells the dialogs service to open a mediaPicker window
|
||||
//with a specified callback, this callback will receive an object with a selection on it
|
||||
angular.module('umbraco')
|
||||
.controller("uComponents.Editors.MNTPController",
|
||||
|
||||
function($scope, dialogService, entityResource){
|
||||
$scope.ids = $scope.model.value.split(',');
|
||||
$scope.renderModel = [];
|
||||
|
||||
entityResource.getByIds($scope.ids).then(function(data){
|
||||
$(data).each(function(i, item){
|
||||
$scope.renderModel.push({name: item.name, id: item.id, icon: item.icon});
|
||||
});
|
||||
});
|
||||
|
||||
$scope.openContentPicker =function(){
|
||||
var d = dialogService.contentPicker({scope: $scope, callback: populate});
|
||||
};
|
||||
|
||||
$scope.remove =function(index){
|
||||
$scope.renderModel.splice(index, 1);
|
||||
$scope.ids.splice(index, 1);
|
||||
$scope.model.value = $scope.ids.join();
|
||||
};
|
||||
|
||||
$scope.add =function(item){
|
||||
|
||||
if($scope.ids.indexOf(item.id) < 0){
|
||||
$scope.renderModel.push({name: item.name, id: item.id, icon: item.icon})
|
||||
$scope.ids.push(item.id);
|
||||
|
||||
$scope.model.value = $scope.ids.join();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
function populate(data){
|
||||
$(data.selection).each(function(i, item){
|
||||
$scope.add(item);
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -1,30 +0,0 @@
|
||||
{
|
||||
propertyEditors: [
|
||||
{
|
||||
id: "7e062c13-7c41-4ad9-b389-41d88aeef87c",
|
||||
name: "Multinode treepicker",
|
||||
editor: {
|
||||
view: "~/App_Plugins/property editors/mntp/mntp.html"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "71b8ad1a-8dc2-425c-b6b8-faa158075e63",
|
||||
name: "Related links",
|
||||
editor: {
|
||||
view: "~/App_Plugins/property editors/relatedlinks/relatedlinks.html"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "71b8ad1a-8dc2-425c-b6b8-faa158075e63",
|
||||
name: "Boolean",
|
||||
editor: {
|
||||
view: "~/Umbraco/views/propertyeditors/boolean/boolean.html"
|
||||
}
|
||||
}
|
||||
]
|
||||
,
|
||||
javascript: [
|
||||
'~/App_Plugins/property editors/relatedlinks/relatedlinks.js',
|
||||
'~/App_Plugins/property editors/mntp/mntp.js'
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user