Re: how do i disable swiping between views (disable automatic neighbor view assignment)
26 views
Skip to first unread message
Message has been deleted
Thomas Handorf
unread,
Apr 14, 2015, 3:56:28 PM4/14/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web...@googlegroups.com
add the following code in the Javascript (JS) section of the shell (open shell with Ctrl/Cmd+M):
app.views.each(function(v){
delete v.view_object.neighbors.t;
delete v.view_object.neighbors.b;
v.view_object.neighbors.r=[];
v.view_object.neighbors.l=[];
});
this loops through all views on the page and removes neigbors.
iainbr...@gmail.com
unread,
Mar 19, 2016, 8:29:23 AM3/19/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Webpgr
I have added this, but in mobile view I can still swipe left and right to get to neighbours, whereas I'd like it so that you can only get to the other pages by clicking.