The toggle link is not appearing in any of my pages, effectively making all email comments disappear from the page.

The link that should be generated around line 17 of the javascript never makes it into the page source.

The full text of the email is in the body of the document, but it is toggled to a hidden state by default, and there is no way for the user to unhide it (short of installing Firebug and modifying the emailFitlerToggle class).

I am running drupal-6.16 with a custom zen-based theme on ubuntu/karmic.

Comments

tomszilagyi’s picture

I've run into the same issue and after some experimentation I found a fix or workaround (not really familiar with this technology, so I cannot judge the quality of my solution).

Edit emailFilter.js and change two lines:

// append show/hide links to the element directly preceding the element with a class of "toggle"
//$('.emailFilterToggle').prev().append(' '+showText+'');
// changed to:
$('.emailFilterToggle').after(' '+showText+'
');

and

//$(this).parent().next('.emailFilterToggle').toggle();
// changed to:
$(this).prev().toggle();

I've found that this also fixes an issue that when there are multiple alternating segments of quote and reply texts in an email, this way all quotes are correctly wrapped in their respective toggle, whereas on an older installation (where the original code was actually working somehow) replying in the middle of a quote resulted in only half of the quote wrapped in the toggle, the other half was visible always.

philipnet’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
Assigned: Unassigned » philipnet
Status: Active » Needs review

Hi,

This has been committed to the -dev release and should be released shortly.