Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 88963f68aac1e71a6a7f6c5705be080f9360069f 1 parent 8b18a1e
DEADB33F authored April 10, 2012

Showing 1 changed file with 5 additions and 3 deletions. Show diff stats Hide diff stats

  1. 8  r2/r2/public/static/js/reddit.js
8  r2/r2/public/static/js/reddit.js
@@ -325,8 +325,9 @@ function linkstatus(form) {
325 325
 function subscribe(reddit_name) {
326 326
     return function() { 
327 327
         if (reddit.logged) {
328  
-            if (reddit.cur_site == reddit_name )
329  
-                $('body').addClass('subscriber'); 
  328
+            if (reddit.cur_site == reddit_name) {
  329
+                $('body').addClass('subscriber');
  330
+            }
330 331
             $.things(reddit_name).find(".entry").addClass("likes");
331 332
             $.request("subscribe", {sr: reddit_name, action: "sub"});
332 333
         }
@@ -336,8 +337,9 @@ function subscribe(reddit_name) {
336 337
 function unsubscribe(reddit_name) {
337 338
     return function() { 
338 339
         if (reddit.logged) {
339  
-            if (reddit.cur_site == reddit_name )
  340
+            if (reddit.cur_site == reddit_name) {
340 341
                 $('body').removeClass('subscriber');
  342
+            }
341 343
             $.things(reddit_name).find(".entry").removeClass("likes");
342 344
             $.request("subscribe", {sr: reddit_name, action: "unsub"});
343 345
         }

0 notes on commit 88963f6

Please sign in to comment.
Something went wrong with that request. Please try again.