Answer the question
In order to leave comments, you need to log in
Modal window disappears on click, how to fix it?
Modal window disappears on click how to fix it? I know it's ok, but I need to remove it. If clicked, it should not disappear.
Here is the code.
function cs_addto_wishlist(admin_url, post_id){
"use strict";
var dataString = 'post_id=' + post_id+'&action=cs_addto_usermeta';
jQuery(".post-"+post_id+" .cs-add-wishlist").html('<i class="icon-spinner8 icon-spin"></i>');
jQuery.ajax({
type:"POST",
url: admin_url,
data: dataString,
success:function(response){
jQuery(".post-"+post_id+" .cs-add-wishlist").html(response);
jQuery(".post-"+post_id+" a.cs-add-wishlist").attr("onclick","cs_delete_from_favourite('"+admin_url+"','"+post_id+"','post')");
jQuery(".post-"+post_id+" a.cs-add-wishlist").attr("data-original-title","Unfavourite");
jQuery(".post-"+post_id+" .outerwrapp-layer").fadeTo(200000, 50000).slideUp(500);
}
});
return false;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question