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 39db482..ac14593 100644 (file)
@@ -1,6 +1,6 @@
 <%+cbi/valueheader%>
 
 <%+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) %>;
 
        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")) %>;
        }
                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 />
 
 <label style="float:left; margin-right:3px">
        <%:Mode%><br />