19 lines
583 B
JavaScript
19 lines
583 B
JavaScript
$(document).on('click', '#involved', function()
|
|
{
|
|
var involved = $(this).prop('checked') ? 1 : 0;
|
|
$.cookie.set('involved', involved, {expires:config.cookieLife, path:config.webRoot});
|
|
loadCurrentPage();
|
|
});
|
|
|
|
$(document).on('click', '.batch-btn', function()
|
|
{
|
|
const dtable = zui.DTable.query($(this).target);
|
|
const checkedList = dtable.$.getChecks();
|
|
if(!checkedList.length) return;
|
|
|
|
const form = new FormData();
|
|
const url = $(this).data('url');
|
|
checkedList.forEach((id) => form.append('projectIdList[]', id));
|
|
postAndLoadPage(url, form);
|
|
});
|