Closed s0nspark closed 6 years ago
After experimenting with an iframe in the modal (ugh, just ugh) I ended up solving this by using ajax in concert with the eModal bootstrap modal dialog helper. Since I used ajax to populate the modal dialog I did have to re-init filterrific to get the event handlers registered but, that aside, it proved easy enough.
I am just getting started with filterrific and have, up to now, only used it in a "normal" fashion - filtering the model associated with the current controller/view.
Now, though, I'd like to use it in a bootstrap modal dialog to allow the user to look up and filter items from a different model (to associate with the current model instance) and am not entirely sure what changes in approach will be needed.
I'm thinking I will need to dynamically return not only results from the ajax call but the filterrific form as well but wasn't sure what issues that might unleash ;-)
Thoughts?
ps - thanks for such an awesome plugin!