Hey everyone, I’m sure this is a relative simple problem (because I think i read about this somewhere a while ago, but cant find that resource anymore).
I’m including the following JS in a TV:
<script type="text/javascript">
$(function() {
$("#warehouse-list")
.tablesorter({sortList:[[2,0]], widthFixed: true, widgets: ['zebra']})
.tablesorterPager({container: $("#pager")});
});
</script>
Which when rendered on the front-end spits out:
<script type="text/javascript">
$(function() {
$("#warehouse-list")
.tablesorter({sortList:, widthFixed: true, widgets: ['zebra']})
.tablesorterPager({container: $("#pager")});
});
</script>
Obviously modx is interpreting this as some sort of variable: "[[2,0]]".
So obvious question is, how can i get this to render without being interpreted the wrong way my modx.
Thanks in advance fellas.