|
@ -701,7 +701,7 @@ function initRelays(data) { |
|
|
$(".id", line).html(i); |
|
|
$(".id", line).html(i); |
|
|
$("input", line).attr("data", i); |
|
|
$("input", line).attr("data", i); |
|
|
line.appendTo("#relays"); |
|
|
line.appendTo("#relays"); |
|
|
$(":checkbox", line).iphoneStyle({ |
|
|
|
|
|
|
|
|
$("input[type='checkbox']", line).iphoneStyle({ |
|
|
onChange: doToggle, |
|
|
onChange: doToggle, |
|
|
resizeContainer: true, |
|
|
resizeContainer: true, |
|
|
resizeHandle: true, |
|
|
resizeHandle: true, |
|
@ -1083,7 +1083,7 @@ function processData(data) { |
|
|
var sch_value = schedule[key]; |
|
|
var sch_value = schedule[key]; |
|
|
$("input[name='" + key + "']", sch_line).val(sch_value); |
|
|
$("input[name='" + key + "']", sch_line).val(sch_value); |
|
|
$("select[name='" + key + "']", sch_line).prop("value", sch_value); |
|
|
$("select[name='" + key + "']", sch_line).prop("value", sch_value); |
|
|
$(":checkbox[name='" + key + "']", sch_line). |
|
|
|
|
|
|
|
|
$("input[type='checkbox'][name='" + key + "']", sch_line). |
|
|
prop("checked", sch_value). |
|
|
prop("checked", sch_value). |
|
|
iphoneStyle("refresh"); |
|
|
iphoneStyle("refresh"); |
|
|
}); |
|
|
}); |
|
|