if (SPContext.Current.IsPopUI)
{
if (!Page.ClientScript.IsClientScriptBlockRegistered(GetType(), "ScriptWinMax"))
{
string script = @"function _maximizeWindow() {
var currentDialog = SP.UI.ModalDialog.get_childDialog();
if (currentDialog != null && !currentDialog.$S_0)
currentDialog.$z();
}
ExecuteOrDelayUntilScriptLoaded(_maximizeWindow, 'sp.ui.dialog.js');";
Page.ClientScript.RegisterClientScriptBlock(GetType(), "ScriptWinMax", script, true);
}
}
Brak komentarzy:
Prześlij komentarz