|
|
|
@ -3463,7 +3463,7 @@ function rcube_webmail()
|
|
|
|
|
this.button_over = function(command, id)
|
|
|
|
|
{
|
|
|
|
|
var a_buttons = this.buttons[command];
|
|
|
|
|
var button, img;
|
|
|
|
|
var button, elm;
|
|
|
|
|
|
|
|
|
|
if(!a_buttons || !a_buttons.length)
|
|
|
|
|
return false;
|
|
|
|
@ -3473,19 +3473,22 @@ function rcube_webmail()
|
|
|
|
|
button = a_buttons[n];
|
|
|
|
|
if(button.id==id && button.status=='act')
|
|
|
|
|
{
|
|
|
|
|
img = document.getElementById(button.id);
|
|
|
|
|
if (img && button.over)
|
|
|
|
|
img.src = button.over;
|
|
|
|
|
elm = document.getElementById(button.id);
|
|
|
|
|
if (elm && button.over) {
|
|
|
|
|
if (button.type == 'image')
|
|
|
|
|
elm.src = button.over;
|
|
|
|
|
else
|
|
|
|
|
elm.className = button.over;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// mouse down on button
|
|
|
|
|
this.button_sel = function(command, id)
|
|
|
|
|
{
|
|
|
|
|
var a_buttons = this.buttons[command];
|
|
|
|
|
var button, img;
|
|
|
|
|
var button, elm;
|
|
|
|
|
|
|
|
|
|
if(!a_buttons || !a_buttons.length)
|
|
|
|
|
return;
|
|
|
|
@ -3495,9 +3498,13 @@ function rcube_webmail()
|
|
|
|
|
button = a_buttons[n];
|
|
|
|
|
if(button.id==id && button.status=='act')
|
|
|
|
|
{
|
|
|
|
|
img = document.getElementById(button.id);
|
|
|
|
|
if (img && button.sel)
|
|
|
|
|
img.src = button.sel;
|
|
|
|
|
elm = document.getElementById(button.id);
|
|
|
|
|
if (elm && button.sel) {
|
|
|
|
|
if (button.type == 'image')
|
|
|
|
|
elm.src = button.sel;
|
|
|
|
|
else
|
|
|
|
|
elm.className = button.sel;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
@ -3506,7 +3513,7 @@ function rcube_webmail()
|
|
|
|
|
this.button_out = function(command, id)
|
|
|
|
|
{
|
|
|
|
|
var a_buttons = this.buttons[command];
|
|
|
|
|
var button, img;
|
|
|
|
|
var button, elm;
|
|
|
|
|
|
|
|
|
|
if(!a_buttons || !a_buttons.length)
|
|
|
|
|
return;
|
|
|
|
@ -3516,9 +3523,13 @@ function rcube_webmail()
|
|
|
|
|
button = a_buttons[n];
|
|
|
|
|
if(button.id==id && button.status=='act')
|
|
|
|
|
{
|
|
|
|
|
img = document.getElementById(button.id);
|
|
|
|
|
if (img && button.act)
|
|
|
|
|
img.src = button.act;
|
|
|
|
|
elm = document.getElementById(button.id);
|
|
|
|
|
if (elm && button.act) {
|
|
|
|
|
if (button.type == 'image')
|
|
|
|
|
elm.src = button.act;
|
|
|
|
|
else
|
|
|
|
|
elm.className = button.act;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|