fix bookmarking issue
parent
c0c843381c
commit
82f2f8e749
|
@ -312,7 +312,7 @@ case class Game(
|
|||
|
||||
def hasBookmarks = bookmarks > 0
|
||||
|
||||
def showBookmarks = hasBookmarks ?? bookmarks
|
||||
def showBookmarks = hasBookmarks ?? bookmarks.toString
|
||||
|
||||
def userIds = playerMaps(_.userId)
|
||||
|
||||
|
|
|
@ -703,7 +703,7 @@ var storage = {
|
|||
return confirm('Confirm this action?');
|
||||
});
|
||||
|
||||
$('#site_header').on('click', 'span.bookmark a.icon', function() {
|
||||
$('div.content').on('click', 'span.bookmark a.icon', function() {
|
||||
var t = $(this).toggleClass("bookmarked");
|
||||
$.post(t.attr("href"));
|
||||
var count = (parseInt(t.html(), 10) || 0) + (t.hasClass("bookmarked") ? 1 : -1);
|
||||
|
|
Loading…
Reference in New Issue