diff --git a/src/Umbraco.Web.UI.Client/src/packages/property editors/mntp/mntp.html b/src/Umbraco.Web.UI.Client/src/packages/propertyeditors/mntp/mntp.html similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/property editors/mntp/mntp.html rename to src/Umbraco.Web.UI.Client/src/packages/propertyeditors/mntp/mntp.html diff --git a/src/Umbraco.Web.UI.Client/src/packages/property editors/mntp/mntp.js b/src/Umbraco.Web.UI.Client/src/packages/propertyeditors/mntp/mntp.js similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/property editors/mntp/mntp.js rename to src/Umbraco.Web.UI.Client/src/packages/propertyeditors/mntp/mntp.js diff --git a/src/Umbraco.Web.UI.Client/src/packages/property editors/package.manifest b/src/Umbraco.Web.UI.Client/src/packages/propertyeditors/package.manifest similarity index 82% rename from src/Umbraco.Web.UI.Client/src/packages/property editors/package.manifest rename to src/Umbraco.Web.UI.Client/src/packages/propertyeditors/package.manifest index dcfbe80dc9..016ab2923b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/property editors/package.manifest +++ b/src/Umbraco.Web.UI.Client/src/packages/propertyeditors/package.manifest @@ -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' ] } \ No newline at end of file diff --git a/src/Umbraco.Web.UI.Client/src/packages/property editors/relatedlinks/relatedlinks.html b/src/Umbraco.Web.UI.Client/src/packages/propertyeditors/relatedlinks/relatedlinks.html similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/property editors/relatedlinks/relatedlinks.html rename to src/Umbraco.Web.UI.Client/src/packages/propertyeditors/relatedlinks/relatedlinks.html diff --git a/src/Umbraco.Web.UI.Client/src/packages/property editors/relatedlinks/relatedlinks.js b/src/Umbraco.Web.UI.Client/src/packages/propertyeditors/relatedlinks/relatedlinks.js similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/property editors/relatedlinks/relatedlinks.js rename to src/Umbraco.Web.UI.Client/src/packages/propertyeditors/relatedlinks/relatedlinks.js diff --git a/src/Umbraco.Web.UI/App_Plugins/property editors/mntp/mntp.html b/src/Umbraco.Web.UI/App_Plugins/property editors/mntp/mntp.html deleted file mode 100644 index 0ab89bc058..0000000000 --- a/src/Umbraco.Web.UI/App_Plugins/property editors/mntp/mntp.html +++ /dev/null @@ -1,18 +0,0 @@ -
- - -

-
\ No newline at end of file diff --git a/src/Umbraco.Web.UI/App_Plugins/property editors/mntp/mntp.js b/src/Umbraco.Web.UI/App_Plugins/property editors/mntp/mntp.js deleted file mode 100644 index b345d6f9e0..0000000000 --- a/src/Umbraco.Web.UI/App_Plugins/property editors/mntp/mntp.js +++ /dev/null @@ -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); - }); - } -}); \ No newline at end of file diff --git a/src/Umbraco.Web.UI/App_Plugins/property editors/package.manifest b/src/Umbraco.Web.UI/App_Plugins/property editors/package.manifest deleted file mode 100644 index dcfbe80dc9..0000000000 --- a/src/Umbraco.Web.UI/App_Plugins/property editors/package.manifest +++ /dev/null @@ -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' - ] -} \ No newline at end of file