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

Fix JavaScript error when using TagsInputWidget #2

Merged
merged 1 commit into from
Mar 7, 2014
Merged

Fix JavaScript error when using TagsInputWidget #2

merged 1 commit into from
Mar 7, 2014

Conversation

jdp
Copy link
Contributor

@jdp jdp commented Mar 7, 2014

When using a TagsInputField in a form and TAGS_INPUT_INCLUDE_JQUERY is enabled, Chome on OS X throws this JavaScript error:

Uncaught TypeError: Object [object Object] has no method 'tagsInput'

It's because the tagsinput plugin's script is loaded before jQuery itself is. Tweaking the TagsInputWidget class to make sure the plugin is loaded after jQuery fixes the issue.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling b97818b on jdp:fix-tagsinputwidget-js into 8a95133 on WoLpH:master.

wolph added a commit that referenced this pull request Mar 7, 2014
Fix JavaScript error when using TagsInputWidget
@wolph wolph merged commit 9760c4e into wolph:master Mar 7, 2014
@wolph
Copy link
Owner

wolph commented Mar 7, 2014

Thank you very much for the fix, I guess I already had jQuery running when I tested this locally :)

wolph added a commit that referenced this pull request May 24, 2015
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

Successfully merging this pull request may close these issues.

None yet

3 participants