1 2 3 4 5 6 7 8 9 |
if (typeof Custom == "undefined") { Custom = { OpenDialog: function (webresource) { var $v_0 = new Mscrm.CrmDialog(Mscrm.CrmUri.create(webresource), window, 370, 370, null); $v_0.show(); }, __namespace: true }; } |
and the usage is following:
1 |
Custom.OpenDialog("/webresources/new_webresource.htm"); |
Demonstration of what it looks like:
You can use this approach but remember that this code uses undocumented methods, so it could be broken with any rollup.