Closed (duplicate)
Project:
Views Display Tabs
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2009 at 09:42 UTC
Updated:
13 Feb 2010 at 08:20 UTC
Hello,
I embed two views on one page using the views_embed_view function. I want to display one of this views with tabs. But it doesn't work (the requests are not asynchronous).
As soon as I show only one view on the page, the tabs work correctly but not with two views on the same page.
In firefox it works only when I show the view with the tabs above the other view. In chrome the order of the views makes no difference.
I found the problem in viewsdisplaytabs.js on line 56
var parentView = $(elem).parents().find('div.view').attr('class');
seems to find the DIV which is not the parent of the current tabs, namely the DIV of the other view.
My solution is to replace the code on line 56 with
var parentView = '';
$(elem).parents().each(function(){
if($(this).is('div.view')){
parentView = $(this).attr('class');
}
});
Comments
Comment #1
braindrift commentedcan somebody confirm this issue?
Comment #2
jordanmagnuson commentedI can confirm this, and that it is solved by the patch at: http://drupal.org/node/664986
Marking as duplicate.