* update select chosen when batch creating users.

This commit is contained in:
chenfeiCF
2016-05-27 09:38:45 +08:00
parent 267e8f3105
commit 05b9b0b9b4
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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 -1
View File
@@ -1,6 +1,6 @@
function changeGroup(role)
{
if(role || roleGroup[role])
if(role && roleGroup[role])
{
$('#group').val(roleGroup[role]);
}