You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by cu...@apache.org on 2017/04/14 14:11:54 UTC
[whimsy] branch master updated: Whoops,
forgot require and sortmarkers
This is an automated email from the ASF dual-hosted git repository.
curcuru 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 876a3ae Whoops, forgot require and sortmarkers
876a3ae is described below
commit 876a3aeda69f871288f57512f844a0302f5469cd
Author: Shane Curcuru <as...@shanecurcuru.org>
AuthorDate: Fri Apr 14 10:11:50 2017 -0400
Whoops, forgot require and sortmarkers
---
www/members/subscriptions.cgi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/www/members/subscriptions.cgi b/www/members/subscriptions.cgi
index 6432c2e..3436e23 100755
--- a/www/members/subscriptions.cgi
+++ b/www/members/subscriptions.cgi
@@ -3,6 +3,7 @@ $LOAD_PATH.unshift File.realpath(File.expand_path('../../../lib', __FILE__))
require 'wunderbar'
require 'whimsy/asf'
+require 'wunderbar/bootstrap'
require 'wunderbar/jquery/stupidtable'
SUBSCRIPTIONS = '/srv/subscriptions/members'
@@ -143,5 +144,15 @@ _html do
end
end
end
+ _script %{
+ var table = $(".table").stupidtable();
+ table.on("aftertablesort", function (event, data) {
+ var th = $(this).find("th");
+ th.find(".arrow").remove();
+ var dir = $.fn.stupidtable.dir;
+ var arrow = data.direction === dir.ASC ? "↑" : "↓";
+ th.eq(data.column).append('<span class="arrow">' + arrow +'</span>');
+ });
+ }
end
end
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].