$(this).click(function(){
$(this).addClass('loading');
- // NB 13.05.23 $(this).parent().parent().remove();
$.ajax({
url: href,
type: 'GET',
+ indexValue: {item: this, href: href},
success: function(result) {
if (minus_one) $(minus_one).numAdd(-1,minus_one_re);
- $(this).parent().parent().remove();
- $(this).removeClass('loading');
+ $(this.indexValue.item).parent().parent().remove();
},
error: function (xhr, status, error) {
- $(this).removeClass('loading');
- alert(status+' '+xhr.status+' '+error);
+ alert(status+' '+xhr.status+' '+error+'\n'+href);
+ $(this.indexValue.item).removeClass('loading');
}
- });
+ })
});
});
}