Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disableButtonsOnConfirm and showLoaderOnConfirm #38

Closed
Mr-Anonymous opened this issue Aug 7, 2015 · 1 comment
Closed

disableButtonsOnConfirm and showLoaderOnConfirm #38

Mr-Anonymous opened this issue Aug 7, 2015 · 1 comment

Comments

@Mr-Anonymous
Copy link

I am trying to get these 2 settings to work so the confirm button gets disabled when clicked to prevent multiple submission, but it doesnt work:

                    SweetAlert.swal({
                            title: "Are you sure?",
                            text: "This will delete it",
                            type: "warning",
                            showCancelButton: true,
                            confirmButtonColor: "#DD6B55",
                            confirmButtonText: "Yes, Delete!",
                            cancelButtonText: "No, Cancel!",
                            closeOnConfirm: false,
                            closeOnCancel: false,
                            disableButtonsOnConfirm: true, // Doesnt Work
                            showLoaderOnConfirm: true // Doesnt Work
                        })

Are those 2 not supported in the Angular Sweetalert? I am using it on Angular 1.3.

@Mr-Anonymous
Copy link
Author

Sorry, the showLoaderOnConfirm: true does work. I just downloaded the latest version of Sweetalert from here and it worked fine after updating that: http://t4t5.github.io/sweetalert/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant