mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-28 16:59:28 +01: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;
|
||||
}
|
||||
|
||||
$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'] = '';
|
||||
if(is_array($item_link))
|
||||
{
|
||||
|
@ -1,6 +1,8 @@
|
||||
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 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 += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
|
||||
strNewHTML += "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
|
||||
img.outerHTML = strNewHTML
|
||||
i = i-1
|
||||
if(img.className != 'sideboxstar') {
|
||||
img.outerHTML = strNewHTML
|
||||
i = i-1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user