mirror of
https://github.com/Hopiu/django-select2.git
synced 2026-05-25 13:03:43 +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::
|
This wraps ``inner_code`` string inside the following code block::
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function () {
|
jQuery(function ($) {
|
||||||
// inner_code here
|
// inner_code here
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -60,7 +60,7 @@ def render_js_script(inner_code):
|
||||||
"""
|
"""
|
||||||
return u"""
|
return u"""
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function () {
|
jQuery(function ($) {
|
||||||
%s
|
%s
|
||||||
});
|
});
|
||||||
</script>""" % inner_code
|
</script>""" % inner_code
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue