Index: openacs-4/packages/acs-templating/tcl/widget-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/widget-procs.tcl,v diff -u -r1.58 -r1.59 --- openacs-4/packages/acs-templating/tcl/widget-procs.tcl 27 Mar 2018 12:43:27 -0000 1.58 +++ openacs-4/packages/acs-templating/tcl/widget-procs.tcl 23 Apr 2018 16:58:39 -0000 1.59 @@ -3,7 +3,7 @@ @author Karl Goldstein (karlg@arsdigita.com) @author Stanislav Freidin (sfreidin@arsdigita.com) - + @cvs-id $Id$ } @@ -20,7 +20,7 @@ namespace eval template::data::transform {} ad_proc -public template::widget {} { - The template::widget namespace contains the code + The template::widget namespace contains the code for the various input widgets. @see template::widget::ampmFragment @@ -63,7 +63,7 @@

It only searches in all parties from the system currently. It should propably be extended to - allow to restrict the search to a specific subsite, as well as searching only + allow to restrict the search to a specific subsite, as well as searching only for groups or persons. @author Tilmann Singer @@ -91,7 +91,7 @@ return $output } -ad_proc -public template::data::validate::party_search { +ad_proc -public template::data::validate::party_search { value_ref message_ref } { @@ -158,7 +158,7 @@ # search in groups and relsegs set groups_relsegs [db_list_of_lists search_groups_relsegs {}] - # Localize the groups + # Localize the groups set groups_relsegs [lang::util::localize_list_of_lists -list $groups_relsegs] if { [llength $persons] == 0 && [llength $groups_relsegs] == 0 } { @@ -223,7 +223,7 @@ } } - Can be either a select widget initially if options supplied + Can be either a select widget initially if options supplied or a text box which on submit changes to a select widget. @param element_reference Reference variable to the form element @@ -276,7 +276,7 @@ array set attributes $element(html) } array set attributes $tag_attributes - + if { [info exists element(value)] } { set value $element(value) } else { @@ -289,22 +289,22 @@ set mode {} } - set attributes(id) $element(name) + set attributes(id) $element(name) set output [textarea_internal $element(name) attributes $value $mode] # Spell-checker array set spellcheck [template::util::spellcheck::spellcheck_properties -element_ref element] - + if { $element(mode) eq "edit" && $spellcheck(render_p) } { - append output "
[_ acs-templating.Spellcheck]: + append output "
[_ acs-templating.Spellcheck]: [menu "$element(id).spellcheck" [nsv_get spellchecker lang_options] $spellcheck(selected_option) {}]" - } + } return $output } -ad_proc -private template::widget::textarea_internal { - name +ad_proc -private template::widget::textarea_internal { + name attribute_reference {value {}} {mode edit} @@ -337,7 +337,7 @@ } else { set output "