Project

General

Profile

« Previous | Next » 

Revision 5765

use +/- for hiding and showing the extra metadata/annotation accordian section

View differences:

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