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

Need to delete modal & set template after init #77

Open
johan-lejdung opened this issue Sep 22, 2015 · 1 comment
Open

Need to delete modal & set template after init #77

johan-lejdung opened this issue Sep 22, 2015 · 1 comment

Comments

@johan-lejdung
Copy link

Hi!

I am in desperate need to remove the link from the object. Sometimes i have to reload the modal several times on a website (when adding new divs which should trigger a modal window) and it then causes some stacked unload events.

So after i do this; $('.class').avgrund({ //init code}); i'd love to be able to delete the modal $('.class').avgrund({ //init code}).remove() or something.

There isn't anything about this in the documentation.

Furthermore i really need to be able to edit the template after initialization. Although it's not as urgent since there are ways around this (a reload of the modal with a function call in template for example)

@johan-lejdung
Copy link
Author

Might have solved it by calling:
$('.previewmail').off();
$('.previewmail').unbind();

But it would be nice to have it as an option in the plugin

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

1 participant