* update select chosen when batch creating users.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
function changeGroup(role, i)
|
||||
{
|
||||
if(role || roleGroup[role])
|
||||
if(role && roleGroup[role])
|
||||
{
|
||||
$('#group' + i).val(roleGroup[role]);
|
||||
}
|
||||
@@ -8,6 +8,7 @@ function changeGroup(role, i)
|
||||
{
|
||||
$('#group' + i).val('');
|
||||
}
|
||||
$('#group' + i).trigger('chosen:updated');
|
||||
}
|
||||
function toggleCheck(obj, i)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
function changeGroup(role)
|
||||
{
|
||||
if(role || roleGroup[role])
|
||||
if(role && roleGroup[role])
|
||||
{
|
||||
$('#group').val(roleGroup[role]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user