0,0 → 1,27 |
####################################################################### |
# This script is distributed in the hope that it will be useful, |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# GNU General Public License for more details. |
# Author: Andrzej KardaĆ |
# License: GPLv3 |
# The full version of the licencse can be obtainted by visiting: |
# http://www.gnu.org/licenses/gpl.html |
####################################################################### |
$(document).ready(function(){ |
$('div.toggle').each(function(){ |
var $link = $(this).children('a.toggle_link:first'); |
var $content = $(this).children('div.toggle_content:first'); |
$link.click(function(){ |
if ($link.is('.toggle_close')){ |
$link.removeClass('toggle_close'); |
$link.addClass('toggle_open'); |
} else if ($link.is('.toggle_open')){ |
$link.removeClass('toggle_open'); |
$link.addClass('toggle_close'); |
} |
$content.slideToggle("slow"); |
return false; |
}); |
}); |
}); |
Property changes: |
Added: svn:mime-type |
## -0,0 +1 ## |
+text/plain |
\ No newline at end of property |