Code

Also gray out divlist elements
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 21 Jul 2006 07:51:34 +0000 (07:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 21 Jul 2006 07:51:34 +0000 (07:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4272 594d385d-05f5-0310-b6e9-bd551577e9d8

include/smarty/plugins/block.render.php

index 6fe13b4a76bae6413aa8f75e04d0e349896e383c..d3406ec2d1e16149d3a7b17fd3d3100c3c7cf1dd 100755 (executable)
@@ -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 */