Closed (fixed)
Project:
Panels Tabs
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 May 2009 at 16:20 UTC
Updated:
14 Aug 2010 at 12:40 UTC
Clicking the preview button when you have the node context comment form (panels has a custom comment form called panels_comment_form), you are redirected back to the same page, and the preview is shown, but you also see ALL the panes now, including the ones that tabs was supposed to be hiding. My guess is that a class name is changed or something when there is a comment preview.
Comments
Comment #1
frankcarey commentedThis is also happening when a user just submits a comment. The comment is given an anchor of "#new", and the submit redirects to that anchor.
i.e. submit my comment -> mysite.com/node/1#new
so, it looks like the js is picking up #new when it shoudn't be
Frank
Comment #2
frankcarey commentedComment #3
wim leersYep, that sounds like how it currently — erroneously — works. Also see http://drupal.org/node/296373#comment-1625446, which fixes a current bug in fragment checking. Just add another test that checks if the fragment is one of Tabs Panel Style and you should be good. Care to roll the patch? :)
Comment #4
frankcarey commentedi can give it a shot, is the code in question in the JS ?
Comment #5
wim leersYes. And … awesome, looking forward to the patch! :)
Comment #6
shaneonabike commentedsubscribe
Comment #7
smoothify commentedMarking this as fixed as I can't reproduce this behaviour on the current versions, the preview comments seems to work ok - please let me know if it does still occur.