mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 20:31:31 +02:00
really, really, really ugly hack, to fix the not displayed js calendar.
The calendar disapears, when the image for second select box above the gets replaced. I added a class(sideboxstar) to the balls in the sidebox. Only when the images does not match this class, it get's replaced by the span. Otherwise it stays untouched. If someone finds a better solution or finds the real source for the problem, feel free to fix it! :-)
This commit is contained in:
parent
8d1efd030d
commit
48c12d2ef9
@ -751,7 +751,7 @@ function _sidebox_menu_item($item_link='',$item_text='')
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$var['icon_or_star']='<img src="'.$GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/templates/'.$this->template.'/images'.'/orange-ball.png" width="9" height="9" alt="ball"/>';
|
$var['icon_or_star']='<img class="sideboxstar" src="'.$GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/templates/'.$this->template.'/images'.'/orange-ball.png" width="9" height="9" alt="ball"/>';
|
||||||
$var['target'] = '';
|
$var['target'] = '';
|
||||||
if(is_array($item_link))
|
if(is_array($item_link))
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
|
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
|
||||||
{
|
{
|
||||||
for(var i=0; i<document.images.length; i++)
|
var numberOfImages = document.images.length;
|
||||||
|
|
||||||
|
for(var i=0; i<numberOfImages; i++)
|
||||||
{
|
{
|
||||||
var img = document.images[i]
|
var img = document.images[i]
|
||||||
var imgName = img.src.toUpperCase()
|
var imgName = img.src.toUpperCase()
|
||||||
@ -25,8 +27,10 @@ function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or high
|
|||||||
strNewHTML += " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
|
strNewHTML += " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
|
||||||
strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
|
strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
|
||||||
strNewHTML += "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
|
strNewHTML += "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
|
||||||
img.outerHTML = strNewHTML
|
if(img.className != 'sideboxstar') {
|
||||||
i = i-1
|
img.outerHTML = strNewHTML
|
||||||
|
i = i-1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user