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

Setting Defaults (support request) #320

Open
colinmackinlay opened this issue Aug 26, 2017 · 4 comments
Open

Setting Defaults (support request) #320

colinmackinlay opened this issue Aug 26, 2017 · 4 comments

Comments

@colinmackinlay
Copy link

jquery-confirm version:
v3.3.0

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

Current behavior:
setting defaults is not clear. I'm adding this to my app.js but getting jconfirm is not defined error on the page

require('jquery-confirm');

jconfirm.defaults = {
       closeIcon: true,
       closeIconClass: 'fa fa-close',
       columnClass: 'medium-6 small-10 columns medium-offset-3 small-offset-1'
       };

Expected behavior:
Other information:
Using jconfirm with foundation which is why I want to set other classes by default

@craftpip
Copy link
Owner

This plugin does not support AMD as of now, im looking to add this feature.
for now you will have to add the js file globally.

@richardtorres314
Copy link

@craftpip any update to supporting AMD?

craftpip added a commit that referenced this issue Jan 20, 2018
@craftpip
Copy link
Owner

Sorry for the late reply, AMD is coming

@richardtorres314
Copy link

richardtorres314 commented Mar 16, 2018

Hi @craftpip! Thanks so much for this. Just circling back; is this commit official? I see 3.3.0 as being the official version on https://craftpip.github.io/jquery-confirm/. Thank you!

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

No branches or pull requests

3 participants