Skip to content

Commit

Permalink
fixed but that does not reload masonry after post is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
jayhjkwon committed Apr 5, 2012
1 parent d97cf63 commit c5bad1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions MyStory/Views/Post/PostsListSummaryViewScriptPartial.cshtml
Expand Up @@ -45,10 +45,9 @@
contentType: "application/json",
dataType: "json",
success: function (result) {
alert('success');
$('#modal-delete-post').modal('hide'); // hide modal
$('div#' + selectedPostIdToDelete).remove(); // remove the deleted article
$container.masonry(); //.reload(); // reload masonry layout
$container.masonry('reload'); //.reload(); // reload masonry layout
},
error: function (request, status, error) {
alert(error);
Expand Down

0 comments on commit c5bad1f

Please sign in to comment.