summaryrefslogtreecommitdiff
path: root/js/watch.js
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-12-29 01:30:58 +0100
committerczaks <marcin@6irc.net>2013-12-29 01:30:58 +0100
commitfb55827fa427278426bee3cec11866f536eba21c (patch)
treeb6ab0571562a553d4b7cf1fd855853f3dbb1c26e /js/watch.js
parent371685140a0cf4fd4286e0da32c045a466799348 (diff)
watch.js: bugfix
Diffstat (limited to 'js/watch.js')
-rw-r--r--js/watch.js3
1 files changed, 2 insertions, 1 deletions
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('<div id="watch-pin" style="text-align:right"><a class="unimportant" href="javascript:void(0)">-</a></div>');
$('#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('<div id="watch-board" style="text-align:right"><a class="unimportant" href="javascript:void(0)">-</a></div>');
$('#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();
});