You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2017/09/11 19:20:18 UTC

[whimsy] branch master updated: Add table sorting

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new e6d8385  Add table sorting
e6d8385 is described below

commit e6d83853f2804596034e5fd9e9a9dc2c96647b2c
Author: Sebb <se...@apache.org>
AuthorDate: Mon Sep 11 20:19:16 2017 +0100

    Add table sorting
---
 www/roster/views/committees.html.rb | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/www/roster/views/committees.html.rb b/www/roster/views/committees.html.rb
index 565ca7e..7a925fc 100644
--- a/www/roster/views/committees.html.rb
+++ b/www/roster/views/committees.html.rb
@@ -19,13 +19,14 @@ _html do
         _ 'are listed privately.'
       end
     end
+    _p 'Click on column names to sort.'
 
     _table.table.table_hover do
       _thead do
         _tr do
-          _th 'Name'
-          _th 'Chair(s)'
-          _th 'Description'
+          _th.sorting_asc 'Name', data_sort: 'string-ins'
+          _th 'Chair(s)', data_sort: 'string'
+          _th 'Description', data_sort: 'string'
         end
       end
 
@@ -56,4 +57,7 @@ _html do
       end
     end
   end
+  _script %{
+    $(".table").stupidtable();
+  }
 end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].