Merge branch 'master' of github.com:easysoft/zentaopms

This commit is contained in:
wangyidong
2016-05-31 14:09:55 +08:00
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -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});
});
+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)
{
+2 -1
View File
@@ -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");
}