Domanda

I'm using this piece of code (based on solution here) to check whether modal window fully loaded:

var dialog = SP.UI.ModalDialog.get_childDialog();
if (dialog != null && dialog.$e_0 != null) {
    clearInterval(intervalDialogue);
} 

This works perfectly in SP 2013 but in SP 2016 dialog.$e_0 is always undefined. Is there an alternative for SP 2016?

È stato utile?

Soluzione

I've changed dialog.$e_0 to dialog.$i_0 and now it's working fine.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top