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
Modalizing #2
Comments
@rickydazla yes I saw this too. Its because of some stores we are using show and on some the modalize class. Well we can add both of this. Let me check what's the best way we can do this. |
@rickydazla : Hey man, since we are loading the jquery.form-n-validate.js plugin from the store itself instead of the Mailchimp cdn, I can do some further clean ups to optimize speed. What store can I work to test the changes?? |
Use your old friend zboncak : ) |
Hey man, while working on ballandbuck, I updated the plugin(both the popup and embed). We do not need the jquery.form-n-validate.js plugin anymore and relevant codes which were loading this plugin has been removed, popup will load more faster now. I was thinking about doing working on your previous comment above directly on ballandbuck, but their popup css and html is very different from what it should be. So I will work on this directly on zboncak tomorrow. |
@rickydazla : Hey man, before proceeding with the changes, I was thinking maybe we can merge the snippet mailchimp-signup-script.liquid and mailchimp.popup.js.liquid into one single file. Technically there is no problem but I wanted to your opinion before. |
@jayvin I know this is old, but just to respond anyway in case I haven't on Asana... why not? |
I think previously we were doing some config in the |
@rickydazla, coming to this one, from your first comment. The add class 'modalize' was not there, I have just added it. Is that the behavior that you wanted, if not let me know, I will do the changes. |
Seems like |
For the hide, I will just remove the modalize class. |
Just add |
(*) I have noticed that on some of our sites the modal fades in before the background images has loaded... |
Yes, actually I know why this fading thing is there, I remember some client wanted to have a fading effect and since then, this piece of code has remained into the plugin. :) |
Done, removed fadeIn effect and popup will hide by removeClass 'modalize' instead of .hide() function.. |
Hey @jayvin I am running into some inconsistent issues, I think caused by some confusion between me / you / @trajce as to how these popups (should) work...
My initial vision was for the CSS modalHolder to have display:none and the script would then add the "modalize" class. The modalize class has display block so that would show the modal and then a bunch of other associated attributes would then apply to child elements.
However, I think the script is now using show() and hide() as I see that in various implementations there is an inline display:none and / or the modalize class is already applied. I still see refs to "modalize" in the popup script.
Can you clarify what is happening and/or fix it up? I would like the script to add/remove the modalize class. However, I see the benefit of show/hide as it can be used to fade the modal instead of just boshing it in. Can we do a combo of both? i.e. script adds "modalize" and then fades it in? Maybe we can add options for fade true/false and if true a setting for speed of fade...
The text was updated successfully, but these errors were encountered: