Exemple #1
0
        // Token: 0x06000386 RID: 902 RVA: 0x0001FF50 File Offset: 0x0001E150
        protected void RenderCustomJavascriptVariables()
        {
            TextWriter output = base.Response.Output;
            string     name   = "a_iCtx";
            int        num    = (int)this.addressBookMode;

            RenderingUtilities.RenderJavascriptVariable(output, name, num.ToString());
            if (AddressBook.IsEditingMode(this.addressBookMode))
            {
                if (!this.hasOwner)
                {
                    RenderingUtilities.RenderJavascriptVariable(base.Response.Output, "a_sEdtId", this.editingItemId ?? string.Empty);
                    RenderingUtilities.RenderJavascriptVariable(base.Response.Output, "a_sEdtCk", this.editingItemChangeKey ?? string.Empty);
                }
                TextWriter output2 = base.Response.Output;
                string     name2   = "a_iEdtRw";
                int        num2    = (int)this.recipientWell;
                RenderingUtilities.RenderJavascriptVariable(output2, name2, num2.ToString());
            }
            if (base.IsEmbeddedItem)
            {
                RenderingUtilities.RenderJavascriptVariable(base.Response.Output, "a_sPrTp", base.ParentItem.ClassName);
                return;
            }
            RenderingUtilities.RenderJavascriptVariable(base.Response.Output, "a_fInDelItms", base.IsInDeleteItems);
            Utilities.GetQueryStringParameter(base.Request, "oT", false);
            if (this.hasOwner)
            {
                RenderingUtilities.RenderJavascriptVariable(base.Response.Output, "a_fOw", true);
                RenderingUtilities.RenderOwnerItemInformationFromQueryString(base.Request, base.Response.Output);
                return;
            }
            RenderingUtilities.RenderJavascriptVariable(base.Response.Output, "a_fOw", false);
            RenderingUtilities.RenderJavascriptVariable(base.Response.Output, "a_sBkUrl", base.UserContext.LastClientViewState.ToQueryString());
        }
Exemple #2
0
 protected void RenderCustomJavascriptVariables()
 {
     if (this.hasOwner)
     {
         RenderingUtilities.RenderJavascriptVariable(base.Response.Output, "a_fOw", true);
         RenderingUtilities.RenderOwnerItemInformationFromQueryString(base.Request, base.Response.Output);
         return;
     }
     RenderingUtilities.RenderJavascriptVariable(base.Response.Output, "a_fOw", false);
     RenderingUtilities.RenderJavascriptVariable(base.Response.Output, "a_sBkUrl", base.UserContext.LastClientViewState.ToQueryString());
 }
        // Token: 0x060006C3 RID: 1731 RVA: 0x000351E4 File Offset: 0x000333E4
        public static void RenderAutoSaveAndKeepAlive(TextWriter writer, UserContext userContext)
        {
            int autoSaveInterval = Globals.AutoSaveInterval;
            int value            = 120000;

            if (autoSaveInterval <= 120)
            {
                value = autoSaveInterval * 1000 - 30000;
            }
            RenderingUtilities.RenderJavascriptVariable(writer, "a_iASI", autoSaveInterval);
            RenderingUtilities.RenderJavascriptVariable(writer, "a_iKAI", value);
        }
        // Token: 0x060006C2 RID: 1730 RVA: 0x0003514C File Offset: 0x0003334C
        public static void RenderOwnerItemInformationFromQueryString(HttpRequest request, TextWriter writer)
        {
            string value = Utilities.GetQueryStringParameter(request, "oId", false) ?? string.Empty;

            RenderingUtilities.RenderJavascriptVariable(writer, "a_sOwId", value);
            string value2 = Utilities.GetQueryStringParameter(request, "oCk", false) ?? string.Empty;

            RenderingUtilities.RenderJavascriptVariable(writer, "a_sOwCk", value2);
            string value3 = Utilities.GetQueryStringParameter(request, "oT", false) ?? string.Empty;

            RenderingUtilities.RenderJavascriptVariable(writer, "a_sOwTp", value3);
            string value4 = Utilities.GetQueryStringParameter(request, "oS", false) ?? string.Empty;

            RenderingUtilities.RenderJavascriptVariable(writer, "a_sOwSt", value4);
        }