There are enough places that we enjoy the brvty of $() that it needs
to be defined even if jQuery isn't available.
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
[% IF ctx.want_jquery || ctx.readonly %]
<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/common/build/js/jquery.min.js[% ctx.cache_key %]"></script>
+[% ELSE %]
+<script type="text/javascript">
+ function $(id) {
+ return document.getElementById(id);
+ }
+</script>
[% END; # ctx.want_jquery %]
[% IF ctx.readonly %]