Files
luos/workflow/engine/js/departments/departments.js
Victor Saisa Lopez 6d9858d6d0 HOR-1738 "Change folder permissions in ProcessMaker" SOLVED
Issue:
    Change folder permissions in ProcessMaker
Cause:
    Nuevo requerimiento
Solution:
    Se cambio los permisos de los files and directories
2016-08-30 13:03:35 -04:00

65 lines
1.7 KiB
JavaScript

function saveUserGroup(sUser) {
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../groups/groups_Ajax',
async : false,
method: 'POST',
args : 'action=assignUser&GRP_UID=' + currentGroup + '&USR_UID=' + sUser
});
oRPC.make();
currentPopupWindow.remove();
selectGroup(currentGroup);
}
function saveUsers(){
if( checks_selected_ids.length == 0 ){
new leimnud.module.app.alert().make({label: G_STRINGS.ID_MSG_GROUPS_ADDCONFIRM});
return 0;
}
//alert('action=assignAllUsers&DEP_UID=' + currentGroup + '&aUsers=' + checks_selected_ids);return;
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../departments/departments_Ajax',
async : false,
method: 'POST',
args : 'action=assignAllUsers&DEP_UID=' + currentGroup + '&aUsers=' + checks_selected_ids
});
resetChecks();
oRPC.make();
currentPopupWindow.remove();
selectDpto(currentGroup);
}
function resetChecks(){
checks_selected_ids.length = 0;
}
function WindowSize() {
var wSize = [0, 0];
if (typeof window.innerWidth != 'undefined')
{
wSize = [
window.innerWidth,
window.innerHeight
];
}
else if (typeof document.documentElement != 'undefined'
&& typeof document.documentElement.clientWidth !=
'undefined' && document.documentElement.clientWidth != 0)
{
wSize = [
document.documentElement.clientWidth,
document.documentElement.clientHeight
];
}
else {
wSize = [
document.getElementsByTagName('body')[0].clientWidth,
document.getElementsByTagName('body')[0].clientHeight
];
}
return wSize;
}