Beispiel #1
0
    protected void btnHidden_Click(object sender, EventArgs e)
    {
        SessionHelper.SetValue("MediaSource", null);
        SessionHelper.SetValue("DialogParameters", null);
        SessionHelper.SetValue("DialogSelectedParameters", null);
        SessionHelper.SetValue("Anchors", null);
        SessionHelper.SetValue("Ids", null);
        SessionHelper.SetValue("HideLinkText", null);

        string    selected   = hdnSelected.Value;
        Hashtable tSelection = CMSDialogHelper.GetHashTableFromString(selected);

        // 'Insert link' dialog in CK editor
        if (OutputFormat == OutputFormatEnum.HTMLLink)
        {
            string    anchors  = hdnAnchors.Value;
            string    ids      = hdnIds.Value;
            ArrayList lAnchors = CMSDialogHelper.GetListFromString(anchors);
            ArrayList lIds     = CMSDialogHelper.GetListFromString(ids);
            lAnchors.Sort();
            lIds.Sort();
            SelectMediaDialog(tSelection, lAnchors, lIds);
        }
        // Dialogs in other editors
        else
        {
            SelectMediaDialog(tSelection, null, null);
        }
    }