fix close and unclose link via ajax
This commit is contained in:
parent
b8a77e5abe
commit
47ff052c22
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user