mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-13 13:38:14 +08:00
Merge branch 'oopuuu:master' into master
This commit is contained in:
@@ -140,7 +140,7 @@
|
|||||||
<span class="mdl-list__item-secondary-action">
|
<span class="mdl-list__item-secondary-action">
|
||||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect"
|
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect"
|
||||||
for="list-switch-all">
|
for="list-switch-all">
|
||||||
<input type="checkbox" id="list-switch-all"
|
<input type="checkbox" id="list-switch-all" class="mdl-switch__input"
|
||||||
checked/>
|
checked/>
|
||||||
</label>
|
</label>
|
||||||
</span>
|
</span>
|
||||||
@@ -801,6 +801,9 @@
|
|||||||
var checkboxs = socket_ul.getElementsByClassName("mdl-switch__input");
|
var checkboxs = socket_ul.getElementsByClassName("mdl-switch__input");
|
||||||
var switch_lables = socket_ul.getElementsByClassName("mdl-switch");
|
var switch_lables = socket_ul.getElementsByClassName("mdl-switch");
|
||||||
$(".mdl-switch__input").on("click", function() {
|
$(".mdl-switch__input").on("click", function() {
|
||||||
|
if("list-switch-all" == this.id){
|
||||||
|
return;
|
||||||
|
}
|
||||||
var sockets_st = "";
|
var sockets_st = "";
|
||||||
for (var i = 2; i < checkboxs.length; i++) {
|
for (var i = 2; i < checkboxs.length; i++) {
|
||||||
sockets_st += (checkboxs[i].checked ? "1," : "0,");
|
sockets_st += (checkboxs[i].checked ? "1," : "0,");
|
||||||
|
|||||||
Reference in New Issue
Block a user