Index: openacs-4/packages/acs-tcl/tcl/widgets-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/widgets-procs.tcl,v diff -u -r1.18 -r1.19 --- openacs-4/packages/acs-tcl/tcl/widgets-procs.tcl 27 Oct 2014 16:40:09 -0000 1.18 +++ openacs-4/packages/acs-tcl/tcl/widgets-procs.tcl 7 Aug 2017 23:48:00 -0000 1.19 @@ -17,7 +17,7 @@ } db_foreach all_states { - select state_name, abbrev from us_states order by state_name + select state_name, abbrev from states order by state_name } { if { $default == $abbrev } { append widget_value "\n" @@ -47,7 +47,7 @@ } } db_foreach all_countries { - select default_name, iso from countries order by default_name + select default_name, iso from countries order by default_name } { if { $default == $iso } { append widget_value "\n" @@ -168,12 +168,8 @@ } { # if you would like the default to be null, call with value= "" - if {[ns_info name] ne "NaviServer"} { - ns_share NS - } else { - set NS(months) [list January February March April May June \ - July August September October November December] - } + set NS(months) [list January February March April May June \ + July August September October November December] if { $value == 0 } { # no default, so use today @@ -276,15 +272,15 @@ } } if_no_rows { if {$default ne ""} { - return "\n" + return "\n" } else { return {} } } } if { $count == 1 || ($dbcount == 1 && $hidden_if_one_db) } { - return "$item\n" + return "$item\n" } elseif {!$count && !$dbcount && $blank_if_no_db} { return {} } else { @@ -387,9 +383,14 @@ } { Returns a color selection widget, optionally using JavaScript. Default is a string of the form '0,192,255'. } { - set out "
} + append out [subst {" } @@ -423,7 +427,9 @@ set c2 255 set c3 255 } - append out "  " + append out [subst {  + + }] } append out "
\n" return $out @@ -454,3 +460,9 @@ } } + +# Local variables: +# mode: tcl +# tcl-indent-level: 4 +# indent-tabs-mode: nil +# End: