Hello,
I have some javascript code hooked up to the RibbonBar OnClientButtonClicking event. There is a confirm() method to let the user confirm the action of the RibbonBar button. The result is a parameter for args.set_cancel(). It works nicely:
Now I want to replace the browser confirm popup box with custom jQuery dialog. But even when I use async/await and clearly see that the javascript function stops and waits for the user response, the RibbonBar goes on and continues with the action before args.set_cancel is called.
Is there a way to get around this?