require("luci.sys")
require("luci.sys.zoneinfo")
require("luci.tools.webadmin")
+require("luci.fs")
m = Map("system", translate("system"), translate("a_s_desc"))
end
AbstractValue.write(self, section, value)
- self.map.uci:set("system", section, "timezone", lookup_zone(value) or "GMT0")
+ local timezone = lookup_zone(value) or "GMT0"
+ self.map.uci:set("system", section, "timezone", timezone)
+ luci.fs.writefile("/etc/TZ", timezone .. "\n")
end
s:option(Value, "log_size", nil, "kiB").optional = true
}
}
}
+
+ XHTML1.addEventListener(document, "click", function() {
+ if (delayHideTimerId) {
+ clearTimeout(delayHideTimerId);
+ delayHideTimerId = 0;
+ delayHide();
+ }
+ });
}
if(XHTML1.isDOMSupported()) {