Closed (fixed)
Project:
Views Accordion
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
10 Dec 2009 at 17:11 UTC
Updated:
1 Feb 2010 at 19:50 UTC
Jump to comment: Most recent file
It adds the class to the header, but the row isn't opened. Firefox 3.something
For a quick fix, added
$triggers.filter(':eq('+rowstartopen+')').addClass(activeClass).next().show();
jQuery('.'+activeClass, context).next().show(); // this
as a quick fix; my jquery isn't the best
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | views_accordion-656434.2.patch | 936 bytes | manuel garcia |
| #8 | views_accordion-656434.patch | 879 bytes | manuel garcia |
Comments
Comment #1
hefox commentedThe option to autoclose is going cross- view and closing one after opening the one in the other view; ie not sticking to it's view. I guess this is won't fix, accordion issue?
Comment #2
hefox commentedThe left (first) views accoridon, other then closing at the begining, works as expected. The right closes the left (ie the left does not effect the right, where the right effects the left). Looks like something was attached to the left when attaching to the right so it treats it as one accordion, whereas the left does not have that issue.
Comment #3
KingOfMyCastle commentedHi! Can you let me know where you put that code? I can't see any part of any file in the module download that matches your code.
Thanks!
Comment #4
hefox commentedLook for th first line;
However this is not a good fix; the real issue needs to be solved; it's causing more stuff to happening, like closing one accordion closses the unrelated accordion when it's set to only have one open at a time.
Comment #5
manuel garcia commentedOn my site I have two views_accordion display blocks on the front page, with different settings, playing perfectly well together.
If you expect this to ever be fixed, like with any other issue, you need to provide the maintainers with enough information to duplicate the issue:
I hate to be forced to say this, I feel you should all know this, but hacking the module outside the scope of providing a patch is not a good idea, for any module. This is software libre, and as such the development should take place between all of us. If you don't have the coding skills, at least work with the maintainers to improve the software, so that everyone benefits, and you can take advantage of further development.
Comment #6
KingOfMyCastle commentedHi Manuel, here are my circumstances:
Version 6.x-1.2 - 2009-Dec-01
Browsers: FF3, IE7, IE8
I'm sorry I can't give you a link nor screenshots but I'll try to explain.
The problem: Two or more accordions on the screen work fine apart from one thing. If I have two or more that have the 'Start with a row opened' turned on then only one accordion will have its first item open.
In the Accordion Views settings I also have 'Use the group header as the Accordion header' enabled, but none of the other options at all.
I'm using these as block views and if I hide either one using block visibility settings, leaving just a single accordion view, then the first row is opened as expected. If I add another accordion views block (to any region) then on page load only the second accordion view on the screen has the first row opened.
I suppose you call it a 'conflicting start with row open' issue.
Also, just FYI, if I set the first accordion to have row 2 open and the second to have row 1 open then the same issue stands. First accordion has no rows opened.
Anyway, I hope that's enough information.
Thanks.
Comment #7
manuel garcia commentedThanks KingOfMyCastle, I have just confirmed this bug, it seems to only happen exactly on your case, using the grouped by field as the header to open the accordions, having 2 or more accordions in the same page.
Thanks for the detailed bug report, there was no way I could have found out what was the problem with the original bug report.
I will try to debug this, though I am at the moment quite busy with work. Please stand by for testing a patch (hopefully soon).
Comment #8
manuel garcia commentedOK, it was a bit tricky to figure out what was going on, but I think I've found it.
When using grouped results, we were using too broad of a selector, thus picking every views-accordion content on the page to work with, and so these displays were controlling the rest of the accordions on the page.
Please test the patch provided, if possible change the settings on the accordion, and see if anything breaks =)
You should place it into the views_accordion directory to apply it.
Comment #9
KingOfMyCastle commentedHi Manuel, yes this works perfectly.
Thank you very much for the quick update of this amazing module.
Nothing seems to be broken at all.
Comment #10
manuel garcia commentedI have tested the patch a bit more, and it introduced a bug if you weren't using the group by field as the accordion header. The attached file removes the reported bug, but doesn't introduce any more.
I have already committed this. Thanks all.
Comment #11
manuel garcia commentedForgot to attach the committed patch.