Permalink
Browse files

Update r2/r2/public/static/js/reddit.js

  • Loading branch information...
1 parent 8b18a1e commit 88963f68aac1e71a6a7f6c5705be080f9360069f @DEADB33F DEADB33F committed Apr 10, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 r2/r2/public/static/js/reddit.js
@@ -325,8 +325,9 @@ function linkstatus(form) {
function subscribe(reddit_name) {
return function() {
if (reddit.logged) {
- if (reddit.cur_site == reddit_name )
- $('body').addClass('subscriber');
+ if (reddit.cur_site == reddit_name) {
+ $('body').addClass('subscriber');
+ }
$.things(reddit_name).find(".entry").addClass("likes");
$.request("subscribe", {sr: reddit_name, action: "sub"});
}
@@ -336,8 +337,9 @@ function subscribe(reddit_name) {
function unsubscribe(reddit_name) {
return function() {
if (reddit.logged) {
- if (reddit.cur_site == reddit_name )
+ if (reddit.cur_site == reddit_name) {
$('body').removeClass('subscriber');
+ }
$.things(reddit_name).find(".entry").removeClass("likes");
$.request("subscribe", {sr: reddit_name, action: "unsub"});
}

0 comments on commit 88963f6

Please sign in to comment.