Created
May 16, 2014 09:18
-
-
Save mdnmdn/f97fb92c6f35a20a519a to your computer and use it in GitHub Desktop.
Sharepoint 2013 JS waiting dialog
This file contains 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
var dialog = null; | |
function showDialog(){ | |
SP.SOD.loadMultiple(['sp.ui.dialog.js','strings.js'], function(){ | |
dialog = SP.UI.ModalDialog.showWaitScreenWithNoClose("Please wait...", 'Loading data', null, null); | |
}); | |
} | |
function hideDialog(){ | |
if (dialog) dialog.close() | |
dialog = null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment