protected override System.Collections.Generic.IEnumerable <ScriptReference> GetScriptReferences() { if (Site != null) { return(null); } if ((Page != null) && ScriptManager.GetCurrent(Page).IsInAsyncPostBack) { return(null); } List <ScriptReference> scripts = new List <ScriptReference>(); if (EnableCombinedScript && !(IgnoreCombinedScript)) { return(scripts); } string assemblyFullName = GetType().Assembly.FullName; scripts.Add(new ScriptReference("TimeNAction.Scripts._System.js", assemblyFullName)); scripts.Add(new ScriptReference("TimeNAction.Scripts.MicrosoftAjax.js", assemblyFullName)); scripts.Add(new ScriptReference("TimeNAction.Scripts.MicrosoftAjaxWebForms.js", assemblyFullName)); scripts.Add(new ScriptReference("TimeNAction.Scripts.AjaxControlToolkit.js", assemblyFullName)); scripts.Add(new ScriptReference("TimeNAction.Scripts.Web.DataView.js", assemblyFullName)); scripts.Add(new ScriptReference(CultureManager.ResolveEmbeddedResourceName("TimeNAction.Scripts.Web.DataViewResources.js"), assemblyFullName)); scripts.Add(new ScriptReference("TimeNAction.Scripts.Web.Menu.js", assemblyFullName)); ConfigureScripts(scripts); return(scripts); }
protected override void ConfigureScripts(List <ScriptReference> scripts) { if (EnableCombinedScript) { return; } scripts.Add(new ScriptReference(CultureManager.ResolveEmbeddedResourceName("TimeNAction.Scripts.Web.MembershipResources.js"), GetType().Assembly.FullName)); scripts.Add(new ScriptReference("TimeNAction.Scripts.Web.MembershipManager.js", GetType().Assembly.FullName)); }
IEnumerable <ScriptReference> IExtenderControl.GetScriptReferences() { List <ScriptReference> scripts = new List <ScriptReference>(); scripts.Add(new ScriptReference(CultureManager.ResolveEmbeddedResourceName("XIOT.Scripts.Web.DataViewResources.js"), GetType().Assembly.FullName)); scripts.Add(new ScriptReference("XIOT.Scripts.Web.DataView.js", GetType().Assembly.FullName)); scripts.Add(new ScriptReference("XIOT.Scripts.Web.Menu.js", GetType().Assembly.FullName)); scripts.AddRange(ScriptObjectBuilder.GetScriptReferences(typeof(PopupControlExtender))); return(scripts); }
protected virtual void ConfigureScripts(List <ScriptReference> scripts) { if (RequiresMembershipScripts && !(EnableCombinedScript)) { if (EnableMinifiedScript) { scripts.Add(new ScriptReference(CultureManager.ResolveEmbeddedResourceName("INVENIO.js.daf.daf-resources.min.js"), GetType().Assembly.FullName)); scripts.Add(new ScriptReference("INVENIO.js.daf.daf-membership.min.js", GetType().Assembly.FullName)); } else { scripts.Add(CreateScriptReference("~/js/daf/daf-resources.js")); scripts.Add(CreateScriptReference("~/js/daf/daf-membership.js")); } } }
protected override System.Collections.Generic.IEnumerable <ScriptReference> GetScriptReferences() { if (Site != null) { return(null); } if (ScriptManager.GetCurrent(Page).IsInAsyncPostBack) { return(null); } List <ScriptReference> scripts = new List <ScriptReference>(); scripts.AddRange(ScriptObjectBuilder.GetScriptReferences(typeof(ModalPopupExtender))); scripts.AddRange(ScriptObjectBuilder.GetScriptReferences(typeof(AlwaysVisibleControlExtender))); scripts.AddRange(ScriptObjectBuilder.GetScriptReferences(typeof(PopupControlExtender))); scripts.AddRange(ScriptObjectBuilder.GetScriptReferences(typeof(CalendarExtender))); scripts.AddRange(ScriptObjectBuilder.GetScriptReferences(typeof(MaskedEditExtender))); scripts.AddRange(ScriptObjectBuilder.GetScriptReferences(typeof(AutoCompleteExtender))); scripts.Add(new ScriptReference("XIOT.Scripts.Web.DataView.js", GetType().Assembly.FullName)); scripts.Add(new ScriptReference(CultureManager.ResolveEmbeddedResourceName("XIOT.Scripts.Web.DataViewResources.js"), GetType().Assembly.FullName)); scripts.Add(new ScriptReference("XIOT.Scripts.Web.Menu.js", GetType().Assembly.FullName)); ConfigureScripts(scripts); return(scripts); }
protected override void ConfigureScripts(List <ScriptReference> scripts) { scripts.Add(new ScriptReference(CultureManager.ResolveEmbeddedResourceName("XIOT.Scripts.Web.MembershipResources.js"), GetType().Assembly.FullName)); scripts.Add(new ScriptReference("XIOT.Scripts.Web.Membership.js", GetType().Assembly.FullName)); }
protected override System.Collections.Generic.IEnumerable <ScriptReference> GetScriptReferences() { if (Site != null) { return(null); } if ((Page != null) && ScriptManager.GetCurrent(Page).IsInAsyncPostBack) { return(null); } List <ScriptReference> scripts = new List <ScriptReference>(); if (EnableCombinedScript && !(IgnoreCombinedScript)) { ScriptReference combinedScript = new ScriptReference(CombinedScriptName); combinedScript.ResourceUICultures = null; scripts.Add(combinedScript); return(scripts); } string fileType = ".min.js"; if (!(EnableMinifiedScript)) { fileType = ".js"; } CultureInfo ci = CultureInfo.CurrentUICulture; string assemblyFullName = GetType().Assembly.FullName; if (!((ci.Name == "en-US"))) { scripts.Add(new ScriptReference(String.Format("INVENIO.js.sys.culture.{0}.js", ci.Name), assemblyFullName)); } if (EnableMinifiedScript) { scripts.Add(new ScriptReference(("INVENIO.js.sys.jquery-2.2.4" + fileType), assemblyFullName)); scripts.Add(new ScriptReference("INVENIO.js.sys.bootstrap.min.js", assemblyFullName)); scripts.Add(new ScriptReference(String.Format("{0}-{1}{2}", "INVENIO.js.sys.jquery.mobile", ApplicationServices.JqmVersion, fileType), assemblyFullName)); scripts.Add(new ScriptReference("INVENIO.js.sys.MicrosoftAjax.min.js", assemblyFullName)); scripts.Add(new ScriptReference(CultureManager.ResolveEmbeddedResourceName(("INVENIO.js.daf.daf-resources" + fileType)), assemblyFullName)); scripts.Add(new ScriptReference(("INVENIO.js.daf.daf" + fileType), assemblyFullName)); scripts.Add(new ScriptReference(("INVENIO.js.daf.daf-odp" + fileType), assemblyFullName)); if (EnableCombinedScript) { scripts.Add(new ScriptReference(("INVENIO.js.daf.daf-membership" + fileType), assemblyFullName)); } ConfigureScripts(scripts); scripts.Add(new ScriptReference(("INVENIO.js.daf.touch" + fileType), assemblyFullName)); scripts.Add(new ScriptReference(("INVENIO.js.daf.touch-edit" + fileType), assemblyFullName)); scripts.Add(new ScriptReference(("INVENIO.js.daf.touch-charts" + fileType), assemblyFullName)); scripts.Add(new ScriptReference(("INVENIO.js.sys.unicode" + fileType), assemblyFullName)); } else { scripts.Add(CreateScriptReference(("~/js/sys/jquery-2.2.4" + fileType))); scripts.Add(new ScriptReference("INVENIO.js.sys.bootstrap.min.js", assemblyFullName)); scripts.Add(CreateScriptReference(String.Format("~/js/sys/jquery.mobile-{0}{1}", ApplicationServices.JqmVersion, fileType))); scripts.Add(new ScriptReference("INVENIO.js.sys.MicrosoftAjax.min.js", assemblyFullName)); scripts.Add(CreateScriptReference(("~/js/daf/daf-resources" + fileType))); scripts.Add(CreateScriptReference(("~/js/daf/daf" + fileType))); scripts.Add(CreateScriptReference(("~/js/daf/daf-odp" + fileType))); if (EnableCombinedScript) { scripts.Add(CreateScriptReference(("~/js/daf/daf-membership" + fileType))); } ConfigureScripts(scripts); scripts.Add(CreateScriptReference(("~/js/daf/touch" + fileType))); scripts.Add(CreateScriptReference(("~/js/daf/touch-edit" + fileType))); scripts.Add(CreateScriptReference(("~/js/daf/touch-charts" + fileType))); scripts.Add(CreateScriptReference(("~/js/sys/unicode" + fileType))); } if (!(String.IsNullOrEmpty(ApplicationServices.Current.AddScripts()))) { scripts.Add(CreateScriptReference("~/js/daf/add.min.js")); } if (Context.Request.Url.Host.Equals("localhost") && File.Exists(Context.Server.MapPath("~/js/codeontime.designer.js"))) { scripts.Add(CreateScriptReference("~/js/codeontime.designer.js")); } ApplicationServices.Current.ConfigureScripts(scripts); return(scripts); }