/** * Reassign ByUser routines * Author Erik Amaru Ortiz */ var reassignPanel; function toReassignPanel(){ if( checks_selected_ids.length == 0 ){ new leimnud.module.app.alert().make({label: G_STRINGS.ID_REASSIGN_BYUSER}); return 0; } /*oPanel = new leimnud.module.panel(); oPanel.options = { size : { w:1000, h:600 }, position: { x:0,y:0,center:true }, title : G_STRINGS.ID_MSG_RESSIGN_BYUSER_PANEL, statusBar: false, control : {resize:false,roll:false,drag:true}, fx : { modal:true, opacity:true, blinkToFront:false, fadeIn:false, drag:true} }; oPanel.events = { remove: function() { delete(oPanel); //resetChecks(); //window.location = 'cases_ReassignByUser?REASSIGN_USER=' + getField('REASSIGN_USER').value; }.extend(this) };*/ //oPanel.make(); //oPanel.loader.show(); var USER_SELETED = getField('REASSIGN_USER').value; var oRPC = new leimnud.module.rpc.xmlhttp({ url : 'cases_Ajax', args: 'action=reassignByUserList&APP_UIDS='+checks_selected_ids+'&FROM_USR_ID='+USER_SELETED }); oRPC.callback = function(rpc) { //oPanel.loader.hide(); //var scs=rpc.xmlhttp.responseText.extractScript(); //oPanel.addContent(rpc.xmlhttp.responseText); //scs.evalScript(); document.getElementById("publisherContent[0]").style.display = 'none'; document.getElementById("publisherContent[1]").style.display = 'none'; document.getElementById("publisherContent[10]").style.display = 'block'; document.getElementById("publisherContent[10]").innerHTML = rpc.xmlhttp.responseText; }.extend(this); oRPC.make(); //reassignPanel = oPanel; } function toReassign(){ var selects = document.getElementsByName('form[USERS]'); var USER_SELETED = getField('REASSIGN_USER').value; var items = ''; for(i=0; i