From d687f1515c7dab618c13008689c2f0656c400de5 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 21 Jul 2006 07:51:34 +0000 Subject: [PATCH] Also gray out divlist elements git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4272 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/smarty/plugins/block.render.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/smarty/plugins/block.render.php b/include/smarty/plugins/block.render.php index 6fe13b4a7..d3406ec2d 100755 --- a/include/smarty/plugins/block.render.php +++ b/include/smarty/plugins/block.render.php @@ -27,8 +27,14 @@ function smarty_block_render($params, $text, &$smarty) if(!(isset($params['mode']) && $params['mode']=='readable')){ /* Disable options && greyout divlists */ - $from = array("/name=/i" , "/list1nohighlight/"); - $to = array(" disabled name=", "list1nohighlightdisabled"); + $from = array("/name=/i" , + "/class=['\"]list1nohighlight['\"]/i", + "/class=['\"]list0['\"]/i", + "/class=['\"]list1['\"]/i"); + $to = array(" disabled name=", + "class='list1nohighlightdisabled'", + "class='list1nohighlightdisabled'", + "class='list1nohighlightdisabled'"); $text = preg_replace($from,$to,$text); /* Replace picture if object is disabled */ -- 2.30.2