$post.addClass('instructor');
}
+ if (commentToggle === '4f1efbb248dc57ba43000075') {
+ $('.commenttoggle').empty();
+ }
+
if (public) {
$post.find('.voteFlag').css({
'cursor': 'default',
// 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);
});
});
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