Skip to content

Commit

Permalink
improve $.archiveBookmark
Browse files Browse the repository at this point in the history
  • Loading branch information
jugyo committed Jan 25, 2012
1 parent cc734a0 commit da5c704
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions views/index.erb
Expand Up @@ -13,14 +13,12 @@
$.mobile.page.prototype.options.domCache = true; // 一覧に戻った時に prefetch しないようにしている

$.archiveBookmark = function(id) {
$.mobile.changePage("/", {transition: 'none'});
$("#bookmark-" + id).fadeOut();
$.ajax({
url: '/archive',
type: 'post',
data: {id: id},
success: function() {
$.mobile.changePage("/", {transition: 'none'});
$("#bookmark-" + id).fadeOut();
}
data: {id: id}
});
}

Expand Down

0 comments on commit da5c704

Please sign in to comment.