Revision 5765
Added by ben leinfelder almost 14 years ago
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