/// <summary> /// The On PreRender event. /// </summary> /// <param name="e"> /// the Event Arguments /// </param> protected override void OnPreRender([NotNull] EventArgs e) { this.PageContext.PageElements.RegisterJsBlockStartup( "TopicStarterPopoverJs", JavaScriptBlocks.TopicLinkPopoverJs( $"{this.GetText("TOPIC_STARTER")} ...", ".topic-starter-popover", "hover")); this.PageContext.PageElements.RegisterJsBlockStartup( "TopicLinkPopoverJs", JavaScriptBlocks.TopicLinkPopoverJs( $"{this.GetText("LASTPOST")} {this.GetText("SEARCH", "BY")} ...", ".topic-link-popover", "focus hover")); var iconLegend = new IconLegend().RenderToString(); this.PageContext.PageElements.RegisterJsBlockStartup( "TopicIconLegendPopoverJs", JavaScriptBlocks.ForumIconLegendPopoverJs( iconLegend.ToJsString(), "topic-icon-legend-popvover")); this.PageContext.PageElements.RegisterJsBlock("dropDownToggleJs", JavaScriptBlocks.DropDownToggleJs()); base.OnPreRender(e); }
/// <summary> /// The On PreRender event. /// </summary> /// <param name="e"> /// the Event Arguments /// </param> protected override void OnPreRender([NotNull] EventArgs e) { this.PageContext.PageElements.RegisterJsBlockStartup( "TopicStarterPopoverJs", JavaScriptBlocks.TopicLinkPopoverJs( $"{this.GetText("TOPIC_STARTER")} ...", ".topic-starter-popover", "hover")); this.PageContext.PageElements.RegisterJsBlockStartup( "TopicLinkPopoverJs", JavaScriptBlocks.TopicLinkPopoverJs( $"{this.GetText("LASTPOST")} {this.GetText("SEARCH", "BY")} ...", ".topic-link-popover", "focus hover")); var iconLegend = new IconLegend().RenderToString(); // setup jQuery and DatePicker JS... this.PageContext.PageElements.RegisterJsBlockStartup( "TopicIconLegendPopoverJs", JavaScriptBlocks.ForumIconLegendPopoverJs( iconLegend.Replace("\n", string.Empty).Replace("\r", string.Empty), "topic-icon-legend-popvover")); base.OnPreRender(e); }