craftpip / jquery-confirm

A multipurpose plugin for alert, confirm & dialog, with extended features.
http://craftpip.github.io/jquery-confirm/
MIT License
1.87k stars 507 forks source link

How can i set order run , i mean if there are alert function is running not yet complete , others is waiting till click"OK" complete . #415

Open yanchhuong opened 6 years ago

yanchhuong commented 6 years ago

jquery-confirm version: v3.x.x

I'm submitting a ... (check one with "x") [ ] bug report [ ] feature request [ ] support request

Current behavior:

Expected behavior:

Steps to reproduce:

Related code:

insert any relevant code here

Other information:

GMButters commented 6 years ago

I'm sorry, i don't understand what you mean, but try this...

$.alert({
    type: 'red',    icon: 'fa fa-warning', theme:'material',    title: 'Title',
    content: 'Hi-1!',
    buttons: {
        apply: {
            action:function() {
                $.alert({
                    type: 'red',    icon: 'fa fa-warning', theme:'material',    title: 'Title',
                    content: 'Hi-2!',
                    buttons: {
                        apply: {
                            action:function() {
                                $.alert({
                                    type: 'red',    icon: 'fa fa-warning', theme:'material',    title: 'Title',
                                    content: 'Hi-3!',
                                    buttons: {
                                        apply: {
                                            action:function() {

                                            }
                                        },
                                        cancel: {
                                            btnClass: 'btn btn-danger',
                                        }
                                    },
                                });
                            }
                        },
                        cancel: {
                            btnClass: 'btn btn-danger',
                        }
                    },
                });
            }
        },
        cancel: {
            btnClass: 'btn btn-danger',
        }
    },
});