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