Revision 5765
Added by ben leinfelder almost 14 years ago
lib/style/skins/semtools/resultset.xsl | ||
---|---|---|
113 | 113 |
<xsl:when test="position() mod 2 = 0">roweven</xsl:when> |
114 | 114 |
</xsl:choose> |
115 | 115 |
</xsl:attribute> |
116 |
|
|
116 |
|
|
117 |
<a href="#" class="accordian">+</a><xsl:text> </xsl:text> |
|
118 |
|
|
117 | 119 |
<!-- citation --> |
118 | 120 |
<xsl:call-template name="citation"/> |
119 | 121 |
|
120 |
<a href="#" class="accordian">Show/Hide</a> |
|
121 |
|
|
122 | 122 |
</div> |
123 | 123 |
|
124 | 124 |
<!-- the content part --> |
lib/style/skins/semtools/index.jsp | ||
---|---|---|
287 | 287 |
// collapsible search results - show and hide the next div |
288 | 288 |
$(function() { |
289 | 289 |
$('.accordian').click(function() { |
290 |
$(this).parent().next().slideToggle("slow"); |
|
290 |
var ref = $(this); |
|
291 |
$(this).parent().next().slideToggle( |
|
292 |
"slow", |
|
293 |
function() { |
|
294 |
if ($(ref).parent().next().is(":visible")) { |
|
295 |
$(ref).html("-"); |
|
296 |
} else { |
|
297 |
$(ref).html("+"); |
|
298 |
} |
|
299 |
}); |
|
291 | 300 |
return false; |
292 | 301 |
}).parent().next().hide(); |
293 | 302 |
}); |
Also available in: Unified diff
use +/- for hiding and showing the extra metadata/annotation accordian section