Commit b25cf485 by Huang Linyu

add select All and disselect all

parent ac913656
......@@ -342,6 +342,16 @@
}
})
//全选或者全不选
function shiftCheckAll(){
// var checkAllBox = $("#checkAll");
if($('#checkAll').is(':checked')) {
$(".J_shift :checkbox").prop("checked", true);
}else{
$(".J_shift :checkbox").prop("checked", false);
}
}
</script>
</#assign>
......@@ -394,7 +404,7 @@
<table class="table table-bordered table-striped">
<thead>
<tr>
<th></th>
<th><input type="checkbox" name="checkAll" id="checkAll" onclick="shiftCheckAll();"></th>
<th class="span1">#</th>
<th>名称</th>
<th>ID : 球场</th>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment