* Merge code.

This commit is contained in:
Yagami
2020-10-12 14:54:02 +08:00
parent a8b95e3fa7
commit f950266577
11 changed files with 378 additions and 10 deletions
+19
View File
@@ -0,0 +1,19 @@
function setDeptUsers(obj)
{
dept = $(obj).val();//Get dept ID.
link = createLink('program', 'createstakeholder', 'programID=' + programID + '&dept=' + dept);
location.href=link;
}
function addItem(obj)
{
var item = $('#addItem').html();
$(obj).closest('tr').after('<tr class="addedItem">' + item + '</tr>');
var $accounts = $(obj).closest('tr').next().find('select[name*=accounts]');
$accounts.chosen();
}
function deleteItem(obj)
{
$(obj).closest('tr').remove();
}