My users have a list of friends, they can click a button to remove the friend from their firends list. This is done as per below.
Once this is happened I need to refresh #containerFriendsRequestSent
because the contents of it have changed. I cannot use location.reload(true); because there are filters on the page and this will reset them meaning the user would have to reselect the filter option.
I thought I could use something like $( "#containerFriendsRequestSent" ).load
but this does not seem to refresh the page?
$('#containerFriendsRequestSent').append(wrapper);
wrapper.children('.destroy').click(function() {
$(".destroy").click(function() {
item.fetchedObject.set("status", "Deleted");
$('#containerFriendsRequestSent').load();
item.fetchedObject.destroy(null, {
success: function(results) {
console.log("DELETED");
},