From 67c8a3e870ab2a06d1636939f50c27011bda655e Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 4 Nov 2008 05:12:12 +0000 Subject: [PATCH] user selection: MDL-17073 add options to control the search in a collapsible region. --- lib/weblib.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index e57f532635..eff30575ff 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4140,12 +4140,16 @@ function print_collapsible_region_start($classes, $id, $caption, $userpref = fal $userpref = false; } + if ($collapsed) { + $classes .= ' collapsed'; + } + $output = ''; $output .= '
'; - $output .= '
'; + $output .= '
'; $output .= '
'; $output .= $caption . ' '; - $output .= "
\n"; + $output .= '
'; $output .= print_js_call('new collapsible_region', array($id, $userpref, get_string('clicktohideshow')), true); if ($return) { -- 2.39.5