From 8671edd10673c82fc7b1550a7f64c6b3b80c51ef Mon Sep 17 00:00:00 2001 From: calzoneman Date: Fri, 17 May 2013 11:23:11 -0400 Subject: [PATCH] Add option for send button in chat --- channel.js | 1 - www/assets/js/client.js | 3 ++- www/assets/js/functions.js | 23 +++++++++++++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/channel.js b/channel.js index 7041756f..1d0fd7d4 100644 --- a/channel.js +++ b/channel.js @@ -193,7 +193,6 @@ Channel.prototype.saveDump = function() { // Save channel dumps every 5 minutes, in case of crash function incrementalDump(chan) { if(chan && chan.users && chan.users.length > 0) { - console.log("dumping " + chan.name); chan.saveDump(); setTimeout(function() { incrementalDump(chan); }, 300000); } diff --git a/www/assets/js/client.js b/www/assets/js/client.js index 0c6ad10b..7f7c33c0 100644 --- a/www/assets/js/client.js +++ b/www/assets/js/client.js @@ -68,7 +68,8 @@ var USEROPTS = { show_timestamps : parseBool(getOrDefault("cytube_show_timestamps", false)), modhat : parseBool(getOrDefault("cytube_modhat", false)), blink_title : parseBool(getOrDefault("cytube_blink_title", false)), - sync_accuracy : parseFloat(getOrDefault("cytube_sync_accuracy", 2)) || 2 + sync_accuracy : parseFloat(getOrDefault("cytube_sync_accuracy", 2)) || 2, + chatbtn : parseBool(getOrDefault("cytube_chatbtn", false)) }; applyOpts(); $("#optlink").click(showUserOpts); diff --git a/www/assets/js/functions.js b/www/assets/js/functions.js index d1e22fbd..32272a9a 100644 --- a/www/assets/js/functions.js +++ b/www/assets/js/functions.js @@ -909,6 +909,12 @@ function showUserOpts() { blink.prop("checked", USEROPTS.blink_title); addOption("Chat Notice", blinkcontainer); + var sendbtncontainer = $("