modules/admin-full: add CDATA comments to wireless_modefreq.htm script tag
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 31 Oct 2014 11:48:24 +0000 (12:48 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 31 Oct 2014 11:48:24 +0000 (12:48 +0100)
This should fix non-wellformed page errors with XHTML themes.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/admin-full/luasrc/view/cbi/wireless_modefreq.htm

index 39db482dd39724f3b3308dbd37e466a47b4946fb..ac14593e79cde50875eb3d2e8caa7febbe3fb9fd 100644 (file)
@@ -1,6 +1,6 @@
 <%+cbi/valueheader%>
 
-<script type="text/javascript">
+<script type="text/javascript">//<![CDATA[
        var freqlist = <%= luci.http.write_json(self.freqlist) %>;
        var hwmodes  = <%= luci.http.write_json(self.hwmodes) %>;
 
                bwdt.value = <%= luci.http.write_json(self.map:get(section, "htmode")) %>;
                chan.value = <%= luci.http.write_json(self.map:get(section, "channel")) %>;
        }
-</script>
+//]]></script>
 
 <label style="float:left; margin-right:3px">
        <%:Mode%><br />