whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: handle some special cases
Date Tue, 03 Oct 2017 18:46:17 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys 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 7537b19  handle some special cases
7537b19 is described below

commit 7537b19f6f3ba1a576f1eec9cfc1b36e0812beb5
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Tue Oct 3 14:46:04 2017 -0400

    handle some special cases
---
 www/board/agenda/views/touch.js.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/www/board/agenda/views/touch.js.rb b/www/board/agenda/views/touch.js.rb
index 4dd746a..b91a892 100644
--- a/www/board/agenda/views/touch.js.rb
+++ b/www/board/agenda/views/touch.js.rb
@@ -53,7 +53,11 @@ class Touch
         link.click() if link
 
       when 'up', 'down'
-        Main.navigate history.state.path.sub(/[^\/]+\/?$/, '') || '.'
+        path = history.state.path.sub(/[^\/]+\/?$/, '') || '.'
+        path = "shepherd/#{Main.item.shepherd}" if path == 'shepherd/queue/'
+        path = "flagged" if path == 'flagged/'
+
+        Main.navigate path
       end
     end
 

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

Mime
View raw message