From 3de98b60c4c3a2587d256e753c0770f87ac5286b Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 25 Jun 2013 22:15:33 +1000 Subject: [PATCH] fixes prop editor view path --- .../directives/umbproperty.directive.js | 7 ++++-- .../src/views/directives/umb-property.html | 2 +- .../Views/directives/umb-property.html | 24 ------------------- 3 files changed, 6 insertions(+), 27 deletions(-) delete mode 100644 src/Umbraco.Web.UI/umbraco/Views/directives/umb-property.html diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/umbproperty.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/umbproperty.directive.js index 106d1a0031..6fff684bfe 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/umbproperty.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/umbproperty.directive.js @@ -1,10 +1,13 @@ angular.module("umbraco.directives") - .directive('umbProperty', function () { + .directive('umbProperty', function (umbPropEditorHelper) { return { scope: true, restrict: 'E', replace: true, - templateUrl: 'views/directives/umb-property.html' + templateUrl: 'views/directives/umb-property.html', + link: function(scope, element, attrs, ctrl) { + scope.propertyEditorView = umbPropEditorHelper.getViewPath(scope.model.view); + } }; }); \ No newline at end of file diff --git a/src/Umbraco.Web.UI.Client/src/views/directives/umb-property.html b/src/Umbraco.Web.UI.Client/src/views/directives/umb-property.html index 815531b96f..7ebb343abc 100644 --- a/src/Umbraco.Web.UI.Client/src/views/directives/umb-property.html +++ b/src/Umbraco.Web.UI.Client/src/views/directives/umb-property.html @@ -15,7 +15,7 @@
- +
diff --git a/src/Umbraco.Web.UI/umbraco/Views/directives/umb-property.html b/src/Umbraco.Web.UI/umbraco/Views/directives/umb-property.html deleted file mode 100644 index 815531b96f..0000000000 --- a/src/Umbraco.Web.UI/umbraco/Views/directives/umb-property.html +++ /dev/null @@ -1,24 +0,0 @@ -
- - -
- - - -
- - - -
- -
-
-
- -
-