Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. function openWait() {
  2. var waitScreen = SP.UI.ModalDialog.showWaitScreenWithNoClose("Loading", "Please wait...");
  3. var options = SP.UI.$create_DialogOptions();
  4. options.url = "/Docs/AllItems.aspx";
  5. options.autoSize = true;
  6. options.allowMaximize = false;
  7. options.allowClose = true;
  8. options.args = waitScreen;
  9.  
  10. SP.UI.ModalDialog.showModalDialog(options);
  11. }
  12.  
  13. function closeWait(){
  14. var waitScreen = SP.UI.ModalDialog.get_childDialog().get_args();
  15. waitScreen.close();}
  16. _spBodyOnLoadFunctionNames.push('closeWait');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement