protected void Page_Load(object sender, EventArgs e) { Scripts.AddRange(new [] { "~/js/asc/core/asc.customevents.js", "~/js/asc/api/api.factory.js", "~/js/asc/api/api.helper.js", "~/js/asc/api/api.service.js", "~/js/asc/api/asc.teamlab.js", "~/js/asc/plugins/jquery.base64.js", "~/js/asc/plugins/jquery-customcombobox.js", "~/js/asc/plugins/jquery-advansedfilter.js", "~/js/asc/plugins/jquery-advansedselector.js", "~/js/asc/plugins/jquery-useradvansedselector.js", "~/js/asc/plugins/jquery-projectadvansedselector.js", "~/js/asc/plugins/jquery-groupadvansedselector.js", "~/js/asc/plugins/jquery-milestoneadvansedselector.js", "~/js/asc/plugins/jquery-contactadvansedselector.js", "~/js/asc/plugins/jquery-emailadvansedselector.js", "~/js/asc/plugins/jquery.tlblock.js", "~/js/asc/plugins/popupBox.js", "~/js/asc/core/asc.files.utility.js", "~/js/asc/core/basetemplate.master.init.js", "~/usercontrols/common/helpcenter/js/help-center.js", "~/js/asc/core/groupselector.js", "~/js/asc/core/asc.mail.utility.js", "~/js/third-party/async.js", "~/js/third-party/modernizr.js", "~/js/third-party/zeroclipboard.js", "~/js/asc/core/clipboard.js", "~/js/third-party/email-addresses.js", "~/js/third-party/punycode.js" }.Select(ResolveUrl)); }
protected void Page_Load(object sender, EventArgs e) { Scripts.AddRange(new[] { "~/js/third-party/jquery/jquery.core.js", "~/js/third-party/jquery/jquery.ui.js", "~/js/third-party/jquery/jquery.tmpl.js", "~/js/third-party/jquery/jquery.json.js", "~/js/third-party/jquery/jquery.cookies.js", "~/js/asc/plugins/jquery.tlcombobox.js", "~/js/asc/plugins/jquery.browser.js", "~/js/third-party/jquery/jquery.blockUI.js", "~/js/third-party/jquery/jquery.mask.js", "~/js/third-party/jquery/jquery.scrollTo.js", "~/js/third-party/jquery/jquery.colors.js", "~/js/third-party/jquery/jquery.magnific-popup.js", "~/js/third-party/jquery/toastr.js", "~/js/third-party/jquery/jquery.caret.1.02.min.js", "~/js/asc/plugins/jquery.helper.js", "~/js/asc/core/asc.anchorcontroller.js", "~/js/asc/core/common.js", "~/js/asc/plugins/jquery.dropdownToggle.js", "~/js/asc/core/asc.topstudiopanel.js", "~/js/asc/core/asc.pagenavigator.js", "~/js/asc/core/asc.tabsnavigator.js", "~/js/asc/core/localstorage.js", "~/js/third-party/ajaxpro.core.js" }.Select(ResolveUrl)); }
public virtual void AddScripts(List <DatabaseClass> scripts, bool listViewOnly = false) { ListView.AddObjects(scripts); if (!listViewOnly) { Scripts.AddRange(scripts); } //List<ListViewItem> items = new List<ListViewItem>(); //foreach (DatabaseClass script in scripts) //{ // CustomListViewItem lvi = new CustomListViewItem(GetListViewKeyValue(script)); // lvi.Script = script; // lvi.Name = GetListViewKeyValue(script); // foreach (PropertyInfo propInfo in PropInfo.Where(p => !p.Name.Equals(GetListViewKey()))) // { // if (ExcludedProperties.Contains(propInfo.Name)) // continue; // lvi.SubItems.Add(propInfo.GetValue(script).ToString()); // } // if (!listViewOnly) // Scripts.Add(script); // ListView.Items.Add(lvi); // //items.Add(lvi); //} //ListView.Items.AddRange(items.ToArray()); }
private void CompileInternal() { OnCompilerStarted(); Scripts.AddRange( Assembly.GetExecutingAssembly().GetTypes() .Where(t => t.IsSubclassOf(typeof(Script))) .Select(s => Register(s)) .Where(s => s != null) ); OnCompilerFinished(); }
protected void Page_Load(object sender, EventArgs e) { Scripts.AddRange(new[] { "~/js/third-party/jquery/jquery.core.js", "~/js/asc/core/localstorage.js" }.Select(ResolveUrl)); Scripts.AddRange(new[] { "common.js", "servicemanager.js", "editor.js" }.Select(PathProvider.GetFileStaticRelativePath)); }
/// <summary> /// Adds 'script:' entries before Flubu target script entry. /// </summary> /// <param name="scriptBeforeTarget"></param> /// <returns></returns> public TravisOptions AddScriptsBeforeTarget(params string[] scriptBeforeTarget) { Scripts.AddRange(scriptBeforeTarget); return(this); }