fix close and unclose link via ajax

This commit is contained in:
Oskar Hahn 2012-07-04 15:49:33 +02:00
parent b8a77e5abe
commit 47ff052c22

View File

@ -35,7 +35,7 @@ function hideClosedSlides(hide) {
} }
$(function() { $(function() {
$('.close_link').click(function(event) { $('.close_link a').click(function(event) {
event.preventDefault(); event.preventDefault();
slide = $(this); slide = $(this);
$.ajax({ $.ajax({
@ -48,7 +48,7 @@ $(function() {
} else { } else {
newclass = 'open'; newclass = 'open';
} }
slide.removeClass('closed open').addClass(newclass); slide.parent().removeClass('closed open').addClass(newclass);
slide.attr('href', data.link); slide.attr('href', data.link);
} }
}); });