From fb55827fa427278426bee3cec11866f536eba21c Mon Sep 17 00:00:00 2001 From: czaks Date: Sun, 29 Dec 2013 01:30:58 +0100 Subject: [PATCH] watch.js: bugfix --- js/watch.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/watch.js b/js/watch.js index bb69872a..e9d73890 100644 --- a/js/watch.js +++ b/js/watch.js @@ -259,13 +259,14 @@ $(function(){ $('hr:first').before('
-
'); $('#watch-pin a').html(is_pinned(boardconfig) ? _("Unpin this board") : _("Pin this board")).click(function() { $(this).html(toggle_pinned(board) ? _("Unpin this board") : _("Pin this board")); + $('#watch-board a').html(is_boardwatched(boardconfig) ? _("Stop watching this board") : _("Watch this board")); update_pinned(); }); $('hr:first').before('
-
'); $('#watch-board a').html(is_boardwatched(boardconfig) ? _("Stop watching this board") : _("Watch this board")).click(function() { $(this).html(toggle_boardwatched(board) ? _("Stop watching this board") : _("Watch this board")); - $('#watch-pin a').html(is_pinned(board) ? _("Unpin this board") : _("Pin this board")); + $('#watch-pin a').html(is_pinned(boardconfig) ? _("Unpin this board") : _("Pin this board")); update_pinned(); });