protected override void BuildScriptDescriptor(ScriptComponentDescriptor descriptor) { base.BuildScriptDescriptor(descriptor); OptionsHelpId optionsHelpId = base.UseSetObject ? OptionsHelpId.EditInboxRule : OptionsHelpId.NewInboxRule; descriptor.AddProperty("HrefForStopProcessingRules", HelpUtil.BuildEhcHref(optionsHelpId.ToString()), true); if (this.ruleObj != null) { descriptor.AddScriptProperty("MailMessageObject", this.ruleObj.ToJsonString(null)); } if (this.templatePhraseNames != null) { descriptor.AddScriptProperty("TemplatePhraseNames", this.templatePhraseNames.ToJsonString(null)); } }
public static string BuildEhcHref(OptionsHelpId helpId) { HelpUtil.EnsureInit(); return(HelpUtil.BuildEhcHref(helpId.ToString(), false)); }