-
Notifications
You must be signed in to change notification settings - Fork 664
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
Naming conflict with bootstrap #62
Comments
Thanks for posting the issue! I'm not sure if this makes sense, because how many people who are using Bootstrap will actually be using my library? Bootstrap's modal is pretty good, and if you're already using Bootstrap anyway... |
I prefer using your modal despite using bootstrap library, bootstrap's library modal isn't that good. |
Bootstraps modal feels a bit bloated for certain tasks. Which is why I wanted to evaluate other modal libraries. Still like this library very much. It feels very organized. |
Cool, thanks :) I'm trying to decide if it's better to simply rename this library (if so, to what?) or allow a noConflict-type setting that lets the user decide what name to use, just defaulting to I don't even know if this would work (haven't tried yet) but something like: $(function() {
$.kfModalNoConflict('kfModal');
// Object is now 'kfModal'
$.kfModa({ ... });
}); Thoughts? |
Just rename this library, I like simplicity, don't let me think. kfModal is OK. 👍 |
I think renaming is the easiest solution. But keep in mind it will break backwards-compatiblity... |
I don't really want to rename this library. It breaks backwards compatibility, documentation needs to be updated, plus "modal" is simply more aesthetically pleasing to work with. I would accept a pull-request that updates everything to |
I just renamed it to kfModal. I only use it for jquery file api. |
ya put in a noconflict and rename CSS classes |
Updated the README to give a heads up to this issue. However I'm not sure it's issue worth tackling. |
I didn't understand the bootstrap solution, what do you mean by renaming the plugin? |
I ran into the same issue #33 was having. I was getting a grey, unclickable background but the modal wouldn't show.
The problem seems to be the name of the plugin because it runs into a naming conflict with Bootstrap! So I replaced every occurrence of the word "modal" with "jmodal" in the plugin and now it works as expected.
I suggest using another variable for the global namespace, since bootstrap is widely used.
P.S.: I opened a new issue so people using bootstrap will find the solution faster.
The text was updated successfully, but these errors were encountered: