From e6b92d3e8e3deaf86c3e8132548d88556090e03b Mon Sep 17 00:00:00 2001 From: Seth Woodworth Date: Mon, 6 Feb 2012 23:51:01 -0500 Subject: [PATCH] updating backchannel to not show comments in a specific class --- public/javascripts/backchannel.js | 10 ++++++++-- start | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/public/javascripts/backchannel.js b/public/javascripts/backchannel.js index c304bb3..d4926c5 100644 --- a/public/javascripts/backchannel.js +++ b/public/javascripts/backchannel.js @@ -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 b6d0b6a..3bc0ca7 100755 --- 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 -- 2.25.1