first commit
This commit is contained in:
commit
4d332ef662
27586 changed files with 3281783 additions and 0 deletions
66
rus/admin/_V4/_js/refreshFrames.js
Normal file
66
rus/admin/_V4/_js/refreshFrames.js
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
//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);
|
||||
*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue