Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aa65535 committed Aug 7, 2017
1 parent 8fedd31 commit caa1600
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions files/luci/view/shadowsocks/dynamiclist.htm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<%+cbi/valueheader%>

<%-
local util = require("luci.util")
local values = self:formvalue(section)
if not values then
values = self:cfgvalue(section) or {self.default}
Expand All @@ -16,9 +15,9 @@
<div<%=attr("id", cbid .. ".value.field")%>></div>
<script type="text/javascript">//<![CDATA[
(function() {
var values = <%=util.serialize_json(values)%>;
var keylist = <%=util.serialize_json(self.keylist)%>;
var vallist = <%=util.serialize_json(self.vallist)%>;
var values = "<%=table.concat(values, ",")%>".split(",");
var keylist = "<%=table.concat(self.keylist, ",")%>".split(",");
var vallist = "<%=table.concat(self.vallist, ",")%>".split(",");
var parent = document.getElementById("<%=cbid%>.value.field");

var dynamiclist_cbi_init = function() {
Expand Down

0 comments on commit caa1600

Please sign in to comment.