diff --git a/src/Umbraco.Web.UI.Client/lib/umbraco/LegacyUmbClientMgr.js b/src/Umbraco.Web.UI.Client/lib/umbraco/LegacyUmbClientMgr.js
index 5ff0db913a..ab0458ed46 100644
--- a/src/Umbraco.Web.UI.Client/lib/umbraco/LegacyUmbClientMgr.js
+++ b/src/Umbraco.Web.UI.Client/lib/umbraco/LegacyUmbClientMgr.js
@@ -175,7 +175,7 @@ Umbraco.Sys.registerNamespace("Umbraco.Application");
},
/** This is used to launch an angular based modal window instead of the legacy window */
- openAngularModalWindow: function (options, onCloseCallback) {
+ openAngularModalWindow: function (options) {
//get our angular navigation service
var injector = getRootInjector();
@@ -249,8 +249,6 @@ Umbraco.Sys.registerNamespace("Umbraco.Application");
//instead of calling just the dialog service we funnel it through the global
//event emitter
getRootScope().$emit("closeDialogs", event);
-
- //dialogService.closeAll(rVal);
}
},
_debug: function(strMsg) {
diff --git a/src/Umbraco.Web.UI.Client/src/common/services/dialog.service.js b/src/Umbraco.Web.UI.Client/src/common/services/dialog.service.js
index af086eb608..5c370fcde1 100644
--- a/src/Umbraco.Web.UI.Client/src/common/services/dialog.service.js
+++ b/src/Umbraco.Web.UI.Client/src/common/services/dialog.service.js
@@ -38,8 +38,6 @@ angular.module('umbraco.services')
for (var i = 0; i < dialogs.length; i++) {
var dialog = dialogs[i];
dialog.close(args);
-
- //removeDialog(dialog, args);
dialogs.splice(i, 1);
}
}
@@ -266,10 +264,8 @@ angular.module('umbraco.services')
*/
close: function (dialog, args) {
if(dialog){
- dialog.close();
- }
-
- //removeDialog(dialog, args);
+ dialog.close(args);
+ }
},
/**
diff --git a/src/Umbraco.Web.UI.Client/src/common/services/macro.service.js b/src/Umbraco.Web.UI.Client/src/common/services/macro.service.js
new file mode 100644
index 0000000000..9a1f4b7483
--- /dev/null
+++ b/src/Umbraco.Web.UI.Client/src/common/services/macro.service.js
@@ -0,0 +1,79 @@
+/**
+ * @ngdoc service
+ * @name umbraco.services.macroService
+ *
+ *
+ * @description
+ * A service to return macro information such as generating syntax to insert a macro into an editor
+ */
+function macroService() {
+
+ return {
+
+ /**
+ * @ngdoc function
+ * @name generateWebFormsSyntax
+ * @methodOf umbraco.services.macroService
+ * @function
+ *
+ * @description
+ * generates the syntax for inserting a macro into a webforms templates
+ *
+ * @param {object} args an object containing the macro alias and it's parameter values
+ */
+ generateWebFormsSyntax: function(args) {
+
+ var macroString = '