From 52b88c0e40d4b27bce42c6232db61165fdbcd331 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Thu, 30 May 2013 14:34:54 -0400 Subject: [PATCH] Finish up --- api.js | 14 ++++++ package.json | 2 +- www/account.html | 6 ++- www/assets/js/functions.js | 17 ++----- www/channel.html | 1 + www/index.html | 1 + www/login.html | 59 ++---------------------- www/reset.html | 94 ++++++++++++++++++++++++++++++++++++++ 8 files changed, 124 insertions(+), 70 deletions(-) create mode 100644 www/reset.html diff --git a/api.js b/api.js index 8e89c6c1..8726b0fd 100644 --- a/api.js +++ b/api.js @@ -366,6 +366,20 @@ function handleProfileChange(params, req, res) { success: result, error: result ? "" : "Internal error. Contact an administrator" }); + + for(var n in Server.channels) { + var chan = Server.channels[n]; + for(var i = 0; i < chan.users.length; i++) { + if(chan.users[i].name.toLowerCase() == name) { + chan.users[i].profile = { + image: img, + text: text + }; + chan.broadcastUserUpdate(chan.users[i]); + break; + } + } + } } function handleEmailChange(params, req, res) { diff --git a/package.json b/package.json index 7a0d6dec..838002ad 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "1.9.2", + "version": "1.9.3", "repository": { "url": "http://github.com/calzoneman/sync" }, diff --git a/www/account.html b/www/account.html index 05fc10e3..d3f865d8 100644 --- a/www/account.html +++ b/www/account.html @@ -26,8 +26,9 @@ CyTube
@@ -48,6 +49,9 @@
  • Change Email
  • +
    +

    Select an action from the sidebar

    +