fix bookmarking issue

pull/83/head
Thibault Duplessis 2014-02-12 20:24:44 +01:00
parent c0c843381c
commit 82f2f8e749
3 changed files with 2 additions and 3 deletions

View File

@ -312,7 +312,7 @@ case class Game(
def hasBookmarks = bookmarks > 0
def showBookmarks = hasBookmarks ?? bookmarks
def showBookmarks = hasBookmarks ?? bookmarks.toString
def userIds = playerMaps(_.userId)

View File

@ -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);

1
todo
View File

@ -115,7 +115,6 @@ drop old notifications (timeline)
anon shares running game - hilarity follows.
puzzle of the day
fix firefox/chrome font-size blank space
bookmark from game list is broken http://en.lichess.org/games/all
deploy
------