Do not assume that jQuery is bound to $ variable.

This commit is contained in:
Eugene Morozov 2013-10-07 22:03:00 +05:30
parent 9895dc613f
commit b4feb53ea4

View file

@ -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