Index: openacs-4/packages/wp-slim/www/edit-slide-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/wp-slim/www/Attic/edit-slide-2.tcl,v diff -u -r1.4 -r1.4.2.1 --- openacs-4/packages/wp-slim/www/edit-slide-2.tcl 6 Sep 2002 15:32:23 -0000 1.4 +++ openacs-4/packages/wp-slim/www/edit-slide-2.tcl 21 Jan 2003 12:46:48 -0000 1.4.2.1 @@ -13,7 +13,6 @@ postamble:html sort_key original_slide_id - array_max button bullet:array,html bullet_num:integer @@ -30,7 +29,7 @@ # construct the list of bullet_items set bullet_items [list] -for {set index 1} {$index < [expr $bullet_num + 2]} {incr index} { +for {set index 1} {$index < [expr $bullet_num + 1]} {incr index} { if {![empty_string_p $bullet($index)]} { lappend bullet_items $bullet($index) } Index: openacs-4/packages/wp-slim/www/edit-slide.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/wp-slim/www/Attic/edit-slide.adp,v diff -u -r1.3 -r1.3.2.1 --- openacs-4/packages/wp-slim/www/edit-slide.adp 6 Sep 2002 21:51:10 -0000 1.3 +++ openacs-4/packages/wp-slim/www/edit-slide.adp 21 Jan 2003 12:46:48 -0000 1.3.2.1 @@ -6,7 +6,7 @@ - + @@ -37,16 +37,20 @@ Bullet Items: @@ -60,7 +64,6 @@ -

Index: openacs-4/packages/wp-slim/www/edit-slide.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/wp-slim/www/Attic/edit-slide.tcl,v diff -u -r1.4 -r1.4.2.1 --- openacs-4/packages/wp-slim/www/edit-slide.tcl 6 Sep 2002 15:32:23 -0000 1.4 +++ openacs-4/packages/wp-slim/www/edit-slide.tcl 21 Jan 2003 12:46:48 -0000 1.4.2.1 @@ -61,6 +61,21 @@ # # -set bullet_num [llength $bullet_items] +set bullet_num 0 +multirow create bullets item widget rows prev +foreach item $bullet_items { + if {[string length $item] < 60} { + set rows 1 + set widget text + } else { + set rows [max 3 [min 8 [expr {[string length $item]/45}]]] + set widget textarea + } + multirow append bullets $item $widget $rows $bullet_num + incr bullet_num +} +incr bullet_num +set bullet_max [expr $bullet_num + 1] + ad_return_template