updates
parent
75104a82cc
commit
76419969f2
|
|
@ -203,7 +203,7 @@
|
||||||
</div><!-- /.modal-body -->
|
</div><!-- /.modal-body -->
|
||||||
<!-- .modal-footer -->
|
<!-- .modal-footer -->
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" id="memberAddSaveBtn" class="btn btn-primary">Save</button> <button type="button" class="btn btn-light" data-dismiss="modal">Close</button>
|
<button type="button" id="memberAddSaveBtn" class="btn btn-primary">加入</button> <button type="button" class="btn btn-light" data-dismiss="modal">Close</button>
|
||||||
</div><!-- /.modal-footer -->
|
</div><!-- /.modal-footer -->
|
||||||
</div><!-- /.modal-content -->
|
</div><!-- /.modal-content -->
|
||||||
</div><!-- /.modal-dialog -->
|
</div><!-- /.modal-dialog -->
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,18 @@
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
deptList();
|
deptList();
|
||||||
|
|
||||||
|
$('#memberAddSaveBtn').on('click', function () {
|
||||||
|
var userArray = [];
|
||||||
|
$.each($('input[type=checkbox][name="memberChkList[]"]:checked'), function () {
|
||||||
|
var item = {
|
||||||
|
user_uid: $(this).val(),
|
||||||
|
user_name: $(this).parent().find('span').eq(0).text().trim()
|
||||||
|
}
|
||||||
|
userArray.push(item);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
$('#groupNewModal').on('click', function () {
|
$('#groupNewModal').on('click', function () {
|
||||||
$('#groupModal').modal('toggle');
|
$('#groupModal').modal('toggle');
|
||||||
});
|
});
|
||||||
|
|
@ -37,7 +49,7 @@ function newMemberClick(dept_uid) {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (isExist == 'N') {
|
if (isExist == 'N') {
|
||||||
items += '<label class="list-group-item custom-control custom-checkbox mb-0"><input name="memberChkList[]" type="checkbox" value="' + item.user_uid + '" class="custom-control-input"> <span class="custom-control-label">' + item.user_name + '</span></label>';
|
items += '<label class="list-group-item custom-control custom-checkbox mb-0"><input id="chk_' + item.user_uid + '" name="memberChkList[]" type="checkbox" value="' + item.user_uid + '" class="custom-control-input"> <span class="custom-control-label">' + item.user_name + '</span></label>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue