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

Support for modal #22

Closed
Mte90 opened this issue Oct 15, 2012 · 2 comments
Closed

Support for modal #22

Mte90 opened this issue Oct 15, 2012 · 2 comments

Comments

@Mte90
Copy link

Mte90 commented Oct 15, 2012

on my app i have modded this plugin for support the modal.
Mte90/Simple-Invoice-Manager@e45a89e
This commit conatian the version modded :-)

the problem on modal that the button are out of the form.
i have added a data tag on parent of the button that contain the id of the form, a new option that contain the event :

jQuery(document).on(
    'change',
    'input,select,textarea :not([type=submit])',
    function() {
        jQuery(this).jqBootstrapValidation();
    }
);
jQuery(document).on(
    'click',
    '.btn-primary',
    function(e) {
        jQuery('input,select,textarea').jqBootstrapValidation();
        jQuery(this).jqBootstrapValidation('init',{event:e});
    }
);

With my hack for execute the check on click and the prevent of submit need to use the init method.

@Mte90
Copy link
Author

Mte90 commented Feb 28, 2013

why this ticket it's closed?

@prabhjot6785
Copy link

This script not working in bootstrap modal.

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

3 participants