update 2026-05-23 14:30:42

This commit is contained in:
action committed 2026-05-23 14:30:42 +08:00
1 parent 10df4c0e7e
commit 9a8249c408
17 files changed
+283 -71

No files matched your search

@@ -4,7 +4,7 @@ local api = self.api
<script type="text/javascript">
//<![CDATA[
document.addEventListener("DOMContentLoaded", function () {
waitForElement('select[name*="<%=api.appname%>"][name*="type"]', function(el) {
waitForElement('select[name*="<%=self.config%>"][name*="type"]', function(el) {
let o_val = el.value;
el.addEventListener("change", () => {
el.blur();
@@ -22,7 +22,7 @@ local api = self.api
}
});
});
waitForElement('select[name*="<%=api.appname%>"][name*="protocol"]', function(el) {
waitForElement('select[name*="<%=self.config%>"][name*="protocol"]', function(el) {
let o_val = el.value;
el.addEventListener("change", () => {
el.blur();
@@ -21,7 +21,7 @@ local api = self.api
function getOption(opt) {
var obj;
var id = 'cbid.<%=api.appname%>.' + node_id + '.' + opt;
var id = 'cbid.<%=self.config%>.' + node_id + '.' + opt;
obj = document.getElementsByName(id)[0] || document.getElementById(id);
if (obj) {
var combobox = document.getElementById('cbi.combobox.' + id);