From dd569525d6f24560bce85ca61242ba767d95fd11 Mon Sep 17 00:00:00 2001 From: starfighter83 Date: Mon, 21 Jun 2010 14:01:47 +0000 Subject: [PATCH] fixes issue with macro container datatype and ie js error [TFS Changeset #70515] --- .../editorControls/macrocontainer/Editor.cs | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/components/editorControls/macrocontainer/Editor.cs b/components/editorControls/macrocontainer/Editor.cs index 72c5108cb1..53f05c823d 100644 --- a/components/editorControls/macrocontainer/Editor.cs +++ b/components/editorControls/macrocontainer/Editor.cs @@ -172,18 +172,18 @@ namespace umbraco.editorControls.macrocontainer base.OnLoad(e); // And a reference to the macro container calls - if (!UmbracoContext.Current.LiveEditingContext.Enabled) - { - ScriptManager sm = ScriptManager.GetCurrent(base.Page); - ServiceReference webservicePath = new ServiceReference(SystemDirectories.Webservices + "/MacroContainerService.asmx"); + //if (!UmbracoContext.Current.LiveEditingContext.Enabled) + //{ + // ScriptManager sm = ScriptManager.GetCurrent(base.Page); + // ServiceReference webservicePath = new ServiceReference(SystemDirectories.Webservices + "/MacroContainerService.asmx"); - if (!sm.Services.Contains(webservicePath)) - sm.Services.Add(webservicePath); - } - else - { - ClientDependencyLoader.Instance.RegisterDependency("webservices/MacroContainerService.asmx/js", "UmbracoRoot", ClientDependencyType.Javascript); - } + // if (!sm.Services.Contains(webservicePath)) + // sm.Services.Add(webservicePath); + //} + //else + //{ + // ClientDependencyLoader.Instance.RegisterDependency("webservices/MacroContainerService.asmx/js", "UmbracoRoot", ClientDependencyType.Javascript); + //}