Added the option of waitText which, when supplied, uses bootstrap button to change the text and disable the ok button when it is pressed. Useful for when long running operations occur when ok is clicked.
Also fixed an issue where the close method was not running correctly when the backdrop is clicked to hide the modal. This issue meant the modal was not properly cleaned up when the backdrop was clicked.
Added the option of waitText which, when supplied, uses bootstrap button to change the text and disable the ok button when it is pressed. Useful for when long running operations occur when ok is clicked.
Also fixed an issue where the close method was not running correctly when the backdrop is clicked to hide the modal. This issue meant the modal was not properly cleaned up when the backdrop was clicked.