X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fweb%2Ftabsort;h=e114319a0254f4780bfcaa6071093d39f016f23f;hb=66482684911b5a12a5182797de54a24c2b31c29a;hp=444bfb56b15f6e1b01e6e2ff74a29c1140209bb8;hpb=c20deee42fbd2d86e976bb6a2e4f8e5f5cf2631b;p=ypp-sc-tools.db-live.git diff --git a/yarrg/web/tabsort b/yarrg/web/tabsort index 444bfb5..e114319 100644 --- a/yarrg/web/tabsort +++ b/yarrg/web/tabsort @@ -54,6 +54,8 @@ $cols <&| script &> +% print $m->content(); + % my $sortfn= "ts_sort__$table"; function <% $sortfn %>(compar) { debug('sorting compar='+compar); @@ -168,4 +170,6 @@ function ts_onload__<% $table %>() { thlist.item(cix).innerHTML += ah; } } + +register_onload(ts_onload__<% $table %>);