? SolrPhpClient Index: apachesolr.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr.js,v retrieving revision 1.1.2.2.2.5 diff -u -p -r1.1.2.2.2.5 apachesolr.js --- apachesolr.js 28 Jul 2009 13:53:37 -0000 1.1.2.2.2.5 +++ apachesolr.js 3 Nov 2009 12:26:45 -0000 @@ -3,12 +3,12 @@ Drupal.behaviors.apachesolr = function(context) { $('.apachesolr-hidden-facet').hide(); $('').text(Drupal.t('Show more')).click(function() { - if ($(this).prev().find('.apachesolr-hidden-facet:visible').length == 0) { - $(this).prev().find('.apachesolr-hidden-facet').show(); + if ($(this).parent().find('.apachesolr-hidden-facet:visible').length == 0) { + $(this).parent().find('.apachesolr-hidden-facet').show(); $(this).text(Drupal.t('Show fewer')); } else { - $(this).prev().find('.apachesolr-hidden-facet').hide(); + $(this).parent().find('.apachesolr-hidden-facet').hide(); $(this).text(Drupal.t('Show more')); } return false;