using System; using CMS.GlobalHelper; using CMS.UIControls; using CMS.CMSHelper; public partial class CMSAdminControls_UI_AdvancedPopupHandler : CMSUserControl { #region "Variables" private bool mSetTitle = true; #endregion #region "Properties" /// /// Determines whether to use autotitle script. /// public bool SetTitle { get { return mSetTitle; } set { mSetTitle = value; } } #endregion #region "Page events" protected void Page_Load(object sender, EventArgs e) { ScriptHelper.RegisterJQueryUI(Page); ScriptHelper.RegisterScriptFile(Page, "DragAndDrop/dragiframe.js"); // Use classic dialogs for devices with touch screen bool useClassicDialogs = UIHelper.ClassicDialogs; useClassicDialogs |= CMSContext.CurrentDevice.IsMobile; // When this control is not visible, classic dialogs will be used Visible &= !useClassicDialogs; } #endregion }