Skip to content

Commit

Permalink
Fix explicit resource modname
Browse files Browse the repository at this point in the history
At least with tw2.core-2.0.6, the modname guessing doesn't work
(with TG2.1.5), so we set them explicitly again.
  • Loading branch information
moschlar committed May 31, 2012
1 parent 6e5d9f9 commit fcd6bde
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tw2/jqplugins/chosen/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@
'ChosenMultipleSelectField']


chosen_img = twc.Link(filename='static/chosen-sprite.png')
chosen_img = twc.Link(
modname=__name__,
filename='static/chosen-sprite.png')
chosen_js = twc.JSLink(
modname=__name__,
filename='static/chosen.jquery.js',
resources=[twj.jquery_js],
location='headbottom')
chosen_css = twc.CSSLink(filename='static/chosen.css')
chosen_css = twc.CSSLink(
modname=__name__,
filename='static/chosen.css')


class ChosenMixin(twc.Widget):
Expand Down

0 comments on commit fcd6bde

Please sign in to comment.