//v. 3.2 //17-11-2014 gestione undefined su logonRes //22-04-2014 sostituito logon con logonRes anche nei template sidebar e dashboard //refresh del menu della sidebar $(document).ready(function() { if($("#logonRes").val() !="" && typeof($("#logonRes").val()) != "undefined") { //faccio il refresh if(ns4 || mz7 || chro) { window.parent.frames[0].location.href=webApp+"/admin/menu/sidebar.jsp"; } else { var menuLeft=document.parentWindow.top.frames["sidebar"]; menuLeft.location.href=webApp+"/admin/menu/sidebar.jsp"; } } }); /* //aggiorna il campo messaggio sull'header var msgType=document.menu.msgType.value; //alert("msgtype="+msgType); { var messaggio=document.menu.msg.value+"\n"+document.menu.grantMsg.value; var msgArea; if(ns4 || mz7 || chro) { msgArea=window.parent.frames[0].document.msgForm.msgArea; } else { msgArea=document.parentWindow.top.frames["header"].document.msgForm.msgArea; } msgArea.value=messaggio; if(msgType=="err") { msgArea.style.backgroundColor='#F99'; msgArea.style.border="1px solid #900"; msgArea.style.color="#900"; } else if(msgType=="warn") { msgArea.style.backgroundColor='#FC6'; msgArea.style.border="1px solid #C30"; msgArea.style.color="#C30"; } else { msgArea.style.backgroundColor='#FFF'; msgArea.style.borderStyle="none"; msgArea.style.color="#063"; } } //in caso di errore faccio un alert if(msgType=="err") alert(messaggio); */