Skip to content

Commit

Permalink
fix: move staticfiles into static/ajax_select to work correctly with …
Browse files Browse the repository at this point in the history
…staticfiles Fixes carltongibson#6 Fixes carltongibson#32
  • Loading branch information
crucialfelix committed Apr 1, 2013
1 parent 729e3bf commit e5722d9
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ajax_select/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,9 @@ def bootstrap():
b['inline'] = ''
if inlines == 'inline':
directory = os.path.dirname( os.path.realpath(__file__) )
f = open(os.path.join(directory,"static","css","ajax_select.css"))
f = open(os.path.join(directory,"static","ajax_select","css","ajax_select.css"))
css = f.read()
f = open(os.path.join(directory,"static","js","ajax_select.js"))
f = open(os.path.join(directory,"static","ajax_select","js","ajax_select.js"))
js = f.read()
b['inline'] = mark_safe(u"""<style type="text/css">%s</style><script type="text/javascript">//<![CDATA[%s//]]></script>""" % (css,js))
elif inlines == 'staticfiles':
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit e5722d9

Please sign in to comment.