(no commit message)
authoralison benjamin <radiocontrolled@gmail.com>
Fri, 29 Jul 2011 17:41:11 +0000 (17:41 -0000)
committeralison benjamin <radiocontrolled@gmail.com>
Fri, 29 Jul 2011 17:41:11 +0000 (17:41 -0000)
docs/themes/mobile/include/header.tmpl.php

index 91cb2f5..c5d3b7d 100644 (file)
@@ -94,14 +94,15 @@ jQuery('#topnavlist-link').click(function(e) {
 });
 ";
 
-// see: http://stackoverflow.com/questions/253689/switching-a-div-background-image-with-jquery
+// see: http://thenerdary.net/articles/entry/toggletext
 //hide and show results        on Browse Courses page
+
 $this->onload .= "
 jQuery('#results-hide-show-link').click(function(e) {
   e.stopPropagation();
-  jQuery('#results-display').slideToggle();
-  jQuery(this).css('color','black');
-
+    jQuery('#results-display').slideToggle();
+    jQuery(this).toggleClass('content-closed');
+    jQuery(this).preventDefault();
   ";
 $this->onload .= "});
 ";