updating backchannel to not show comments in a specific class
authorSeth Woodworth <seth@sethish.com>
Tue, 7 Feb 2012 04:51:01 +0000 (23:51 -0500)
committerSeth Woodworth <seth@sethish.com>
Tue, 7 Feb 2012 04:51:01 +0000 (23:51 -0500)
public/javascripts/backchannel.js
start

index c304bb31803eb524f7b6dbd9da3ea82931f8ff62..d4926c50d739e537ce26303ae55fc74f0c7f626d 100644 (file)
@@ -60,6 +60,10 @@ function renderPosts(fresh, post) {
         $post.addClass('instructor');
       }
 
+      if (commentToggle === '4f1efbb248dc57ba43000075') {
+        $('.commenttoggle').empty();
+      }
+
       if (public) {
         $post.find('.voteFlag').css({
           'cursor': 'default',
@@ -305,8 +309,10 @@ $(document).ready(function(){
   // arrays with updated vote counts and refrain from sending vote message.
   var messagesArrived = 0;
   socket.on('connect', function(){
-    socket.emit('subscribe', lectureID, function(_posts) {
-      posts = _posts;
+    socket.emit('subscribe', lectureID, function(_packet) {
+      posts = _packet.posts;
+      //posts = _posts;
+      commentToggle = _packet.toggle;
       renderPosts(true);
     });
   });
diff --git a/start b/start
index b6d0b6ae32a130fafee3d514416188e8d089999e..3bc0ca742b9860d2ad82bb990d9c67a5766e17eb 100755 (executable)
--- a/start
+++ b/start
@@ -6,7 +6,7 @@
 killall node
 
 # Set Env. Vars.
-export NODE_PATH=/home/risci_atom/fc/etherpad-lite/node_modules:$NODE_MODULES
+export NODE_PATH=/home/risci_atom/fc/node_modules/:/home/risci_atom/fc/etherpad-lite/node_modules:$NODE_PATH
 export MONGO_HOST_URI=mongodb://localhost/fc
 export MONGO_HOST=localhost
 export SERVER_HOST=www.finalsclub.org