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

Backdrop and keyword options not working #30

Closed
efusionsoft opened this issue Jan 22, 2016 · 2 comments
Closed

Backdrop and keyword options not working #30

efusionsoft opened this issue Jan 22, 2016 · 2 comments
Labels

Comments

@efusionsoft
Copy link

Bootstrap modal supports backdrop:static and keyword: false options so that the modal box does not closes if you accidentally clicks outside of a modal box but this is not working with this plugin.

@saribe
Copy link
Owner

saribe commented Jan 22, 2016

Yes, it supports, you can do that!

 // set modal options
 eModal.setModalOptions({
    backdrop: 'static',
    keyboard: false
  });

@saribe saribe closed this as completed Jan 22, 2016
@efusionsoft
Copy link
Author

Thanks @saribe it worked! I was trying:

$('.post-job').click(function (event){
            var options = {
            url: 'job/new',
            title:'Post your requirements',
            buttons:[],
            size: eModal.size.lg,
            useBin: true,
            backdrop: 'static',
            keyboard: false
            };
            eModal.iframe(options);
        });

I changed it to below code to make it work:

eModal.setModalOptions({
    backdrop: 'static',
    keyboard: false
});
$('.post-job').click(function (event){
    var options = {
    url: "job/new",
    title:'Post your requirements',
    buttons:[],
    size: eModal.size.lg,
    useBin: true
    };
    eModal.iframe(options);
});

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

No branches or pull requests

2 participants