This project has moved and is read-only. For the latest updates, please go here.

Alert.showWebResource function

Apr 6 at 8:09 AM
I created a custom html webresource and tried to open with Alert.showWebResource function. I placed two buttons: OK and Cancel.

Alert.showWebResource(webresourcename, 600, 500, "Manage regions", [new Alert.Button("OK", UTB.Account.SaveRegions(), true), new Alert.Button("Cancel", UTB.Account.CancelRegions())]);

I created a new Ribbon button that calls this function. Every time I called, the Dialog is displayed and UTB.Account.SaveRegions() and UTB.Account.CancelRegions() functions are fired automatically. I don't understand this issue.

Thanks