root.html: protect $ symbol from overwriting (#7589)
$ can be overwritten by the jQuery loaded by django-debug-toolbar in the messages fadeout callback, it prevents that.
This commit is contained in:
parent
a666d7d47e
commit
504b43a246
|
@ -60,7 +60,12 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
<script>
|
||||
$(document).ready(function() { $('.messages').delay(5000).fadeOut('slow'); });
|
||||
(function () {
|
||||
var $ = jQuery;
|
||||
$(document).ready(function() {
|
||||
$('.messages').delay(5000).fadeOut('slow');
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue