Created
July 10, 2014 16:17
-
-
Save premchandpl/84490f1d6d14a7938eaf to your computer and use it in GitHub Desktop.
Opening the page in a dialog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openInDialog = function (dlgTitle, dlgWidth, dlgHeight, dlgAllowMaximize, dlgShowClose, needCallBackFunction, pageUrl, dialogData) { | |
| var options = { title: dlgTitle, url: pageUrl, width: dlgWidth, height: dlgHeight, allowMaximize: dlgAllowMaximize, showClose: dlgShowClose, args: dialogData }; | |
| if (needCallBackFunction) { | |
| options.dialogReturnValueCallback = Function.createDelegate(null, closeDialogCallBack); | |
| } | |
| SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog', options); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment