ehpc / bootstrap-waitingfor

"Waiting for..." modal dialog with progress bar for Bootstrap
MIT License
138 stars 82 forks source link

Subsequent calls to show makes it unhideable. #27

Open PCcunha opened 6 years ago

PCcunha commented 6 years ago

If in a situation the script calls show function with an already dialog visible, there is no way to hide it. Even with subsequent calls of hide();

obia75 commented 6 years ago

+1 for this. When already having a modal popup visible it's possible to show the waitingdialog but not to close it

action0jackson commented 6 years ago

@PCcunha , @SugarDad - A workaround that I used was to replace the line in the function constructDialog $dialog.remove(); with return $dialog; This worked for my scenario.