From 48c12d2ef93d9d1dd6e77ac95df044cd27b58afa Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Thu, 15 Feb 2007 11:18:34 +0000 Subject: [PATCH] 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! :-) --- phpgwapi/templates/idots/class.idots_framework.inc.php | 2 +- phpgwapi/templates/idots/js/pngfix.js | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/phpgwapi/templates/idots/class.idots_framework.inc.php b/phpgwapi/templates/idots/class.idots_framework.inc.php index b587763098..814fa33688 100644 --- a/phpgwapi/templates/idots/class.idots_framework.inc.php +++ b/phpgwapi/templates/idots/class.idots_framework.inc.php @@ -751,7 +751,7 @@ function _sidebox_menu_item($item_link='',$item_text='') return; } - $var['icon_or_star']='ball'; + $var['icon_or_star']='ball'; $var['target'] = ''; if(is_array($item_link)) { diff --git a/phpgwapi/templates/idots/js/pngfix.js b/phpgwapi/templates/idots/js/pngfix.js index 44b1056701..185b705a6c 100644 --- a/phpgwapi/templates/idots/js/pngfix.js +++ b/phpgwapi/templates/idots/js/pngfix.js @@ -1,6 +1,8 @@ function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher. { - for(var i=0; i" - img.outerHTML = strNewHTML - i = i-1 + if(img.className != 'sideboxstar') { + img.outerHTML = strNewHTML + i = i-1 + } } } }