Index: openacs-4/packages/acs-tcl/tcl/table-display-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/Attic/table-display-procs.tcl,v diff -u -r1.22 -r1.23 --- openacs-4/packages/acs-tcl/tcl/table-display-procs.tcl 12 Jun 2015 21:01:56 -0000 1.22 +++ openacs-4/packages/acs-tcl/tcl/table-display-procs.tcl 22 Jun 2015 21:03:13 -0000 1.23 @@ -72,7 +72,7 @@ append html "\n" foreach option $option_list { - append html " \[" + append html " \[" # find out what the current option value is. # check if a default is set otherwise the first value is used @@ -97,7 +97,8 @@ if {$option_val eq $thisoption } { append html "[ns_quotehtml [lindex $option_value 1]]" } else { - append html "[ns_quotehtml [lindex $option_value 1]]" + set href $url?[export_ns_set_vars url $option_key $options_set]&[ns_urlencode $option_key]=[ns_urlencode $thisoption] + append html [subst {[ns_quotehtml [lindex $option_value 1]]}] } } append html "\]\n" @@ -362,8 +363,10 @@ } else { set Tasord {} } - append Theader " \n" - append Theader "[lindex $Tcol 1] $Tasord\n" + set href $Tsort_url[ns_urlencode [ad_new_sort_by [lindex $Tcol 0] $Torderby]] + append Theader \ + [subst { }] \ + "\n[lindex $Tcol 1] $Tasord\n" } } append Theader "\n" @@ -887,7 +890,8 @@ set form [ns_getform] } set url_vars [export_ns_set_vars url $variable $form] - return "$text" + set href "[ad_conn url]?$variable=[ns_urlencode $value]$url_vars" + return [subst {[ns_quotehtml $text]}] } ad_proc ad_reverse order { @@ -935,15 +939,15 @@ }] set break {} - foreach item $items { + foreach item $items { if {$item_set eq $item } { - append html "$break$item (edit)" + append html "$break$item (edit)" } else { - append html "$break$item" + append html "$break$item" } set break " | " } - append html "$break ($new_string)\n" + append html "$break ($new_string)\n" return $html }