Esempio n. 1
0
        /// <summary>
        /// Called by the framework so the package can add package specific client-side configuration options and localizations to the page.
        /// </summary>
        /// <param name="manager">The YetaWF.Core.Support.Manager instance of current HTTP request.</param>
        public Task AddSupportAsync(YetaWFManager manager)
        {
            ScriptManager scripts  = manager.ScriptManager;
            Package       package  = AreaRegistration.CurrentPackage;
            string        areaName = AreaRegistration.CurrentPackage.AreaName;

            scripts.AddConfigOption(areaName, "LoaderGif", manager.GetCDNUrl(manager.AddOnManager.GetAddOnNamedUrl(package.AreaName, "no-margin-for-errors.com.prettyLoader") + "images/prettyLoader/ajax-loader.gif"));

            return(Task.CompletedTask);
        }