I'm trying to use the SharePoint 2013 "Working on it..." during ajax call. This is the code:
function ShowWaitDialog() {
SP.UI.ModalDialog.showWaitScreenWithNoClose(SP.Res.dialogLoading15);
}
function BuildTable() {
ExecuteOrDelayUntilScriptLoaded(ShowWaitDialog, "sp.js");
//Do something
SP.UI.ModalDialog.close();
};
The animation loads but never closes becouse on SP.UI.ModalDialog.close()
I get the error "Object doesn't support property or method 'close'".
But on https://msdn.microsoft.com/en-us/library/office/ff410259(v=office.14).aspx I see that the close
method exists.
Some suggestions? Thank you