mirror of
https://github.com/Hopiu/django-select2.git
synced 2026-04-07 07:30:58 +00:00
Do not assume that jQuery is bound to $ variable.
This commit is contained in:
parent
9895dc613f
commit
b4feb53ea4
1 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ def render_js_script(inner_code):
|
|||
This wraps ``inner_code`` string inside the following code block::
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
jQuery(function ($) {
|
||||
// inner_code here
|
||||
});
|
||||
</script>
|
||||
|
|
@ -60,7 +60,7 @@ def render_js_script(inner_code):
|
|||
"""
|
||||
return u"""
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
jQuery(function ($) {
|
||||
%s
|
||||
});
|
||||
</script>""" % inner_code
|
||||
|
|
|
|||
Loading…
Reference in a new issue