You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/10/03 18:46:17 UTC

[whimsy] branch master updated: handle some special cases

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 <ru...@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" <co...@whimsical.apache.org>'].