Skip to content
New issue

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

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

Already on GitHub? # to your account

How to disable dialog button during callback? #38

Open
jexneedls opened this issue Mar 17, 2016 · 0 comments
Open

How to disable dialog button during callback? #38

jexneedls opened this issue Mar 17, 2016 · 0 comments

Comments

@jexneedls
Copy link

Here's my config.

vm.add_inspiration_image_opts = {
            className: "inspiration-image-modal",
            scope: $scope,
            backdrop: 'static',
            animate: false,
            title: 'Add Inspiration Image',
            size: 'large',
            templateUrl: '/app/assets/templates/admin/add_inspiration_image_modal.tpl.html',            
            buttons: {
                add: {
                    label: '<i class="fa fa-floppy-o"></i>&nbsp;&nbsp;Save Image',
                    className: 'btn-primary btn-save',
                    callback: function () {                     
                        // vm.add_inspiration_image_opts.buttons.add.disabled = "true";
                        angular.element('.inspiration-image-modal .submit-button').trigger('click');

                        return false;
                    }
                }
            },
            onEscape: function () {
                resetForm();

                return true;
            }
        };
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant