diff --git a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/insertmacro.controller.js b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/insertmacro.controller.js index 99e2fca98d..5b7bafc459 100644 --- a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/insertmacro.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/insertmacro.controller.js @@ -12,7 +12,7 @@ function InsertMacroController($scope, entityResource, macroResource, umbPropEdi /** changes the view to edit the params of the selected macro */ function editParams() { //get the macro params if there are any - macroResource.getMacroParameters($scope.selectedMacro) + macroResource.getMacroParameters($scope.selectedMacro.id) .then(function (data) { //go to next page if there are params otherwise we can just exit @@ -49,9 +49,11 @@ function InsertMacroController($scope, entityResource, macroResource, umbPropEdi }); //need to find the macro alias for the selected id - var macroAlias = _.find($scope.macros, function (item) { - return item.id == $scope.selectedMacro; - }).alias; + var macroAlias = $scope.selectedMacro.alias; + + /* _.find($scope.macros, function (item) { + return item.id == $scope.selectedMacro.id; + }).alias;*/ //get the syntax based on the rendering engine var syntax; diff --git a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/insertmacro.html b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/insertmacro.html index 7e2b8e330c..b35eb6b083 100644 --- a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/insertmacro.html +++ b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/insertmacro.html @@ -1,27 +1,27 @@
-
-
-
- +
-
+
- + -
+
+
{{$parent.selectedMacro.name}}
+
  • @@ -29,7 +29,6 @@
- diff --git a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/macropicker.html b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/macropicker.html index e2269193b5..a369d15f63 100644 --- a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/macropicker.html +++ b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/macropicker.html @@ -1,18 +1,7 @@
-
-
-
- -
-
-
- - - -
- + +
-
-
+
woot {{dialogData.macro.name}}
+
@@ -33,11 +23,16 @@
- -
+
+
\ No newline at end of file