Merge branch 'master' of github.com:easysoft/zentaopms
This commit is contained in:
@@ -73,6 +73,6 @@ function deleteItem(obj)
|
||||
$(document).ready(function()
|
||||
{
|
||||
toggleCopy();
|
||||
// $("#submenucreate").modalTrigger({type: 'iframe', width: 500});
|
||||
// $("#submenuedit").modalTrigger({type: 'iframe', width: 500});
|
||||
$('[data-id="create"] a').modalTrigger({type: 'iframe', width: 500});
|
||||
$('[data-id="edit"] a').modalTrigger({type: 'iframe', width: 500});
|
||||
});
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
@@ -8,4 +8,5 @@ function changeGroup(role)
|
||||
{
|
||||
$('#group').val('');
|
||||
}
|
||||
$('#group').trigger("chosen:updated");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user