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
+
-
-
-
-
-
-
-
-
@@ -91,39 +71,6 @@
source.postMessage("cytube-login:"+JSON.stringify(data), document.location);
});
});
- $("#register").click(function() {
- if($("#pw2div").css("display") == "none") {
- $("#pw2div").css("display", "");
- return false;
- }
- else if($("#pw2").val() != $("#pw").val()) {
- $("#confirm").addClass("text-error");
- return;
- }
- $.getJSON(WEB_URL+"/api/json/register?name="+$("#username").val()+"&pw="+$("#pw").val()+"&callback=?", function(data) {
- console.log(data);
- data.uname = $("#username").val();
- source.postMessage("cytube-login:"+JSON.stringify(data), document.location);
- });
- });
- $("#changepass").click(function() {
- if($("#newpassdiv").css("display") == "none") {
- $("#newpassdiv").css("display", "");
- $("#pw2div").css("display", "");
- return false;
- }
- else if($("#newpass").val() != $("#pw2").val()) {
- $("#confirm").addClass("text-error");
- return;
- }
- $.getJSON(WEB_URL+"/api/json/changepass?name="+$("#username").val()+"&oldpw="+$("#pw").val()+"&newpw="+$("#newpass").val()+"&callback=?", function(data) {
- if(data.success) {
- $("#newpassdiv").css("display", "none");
- $("#pw2div").css("display", "none");
- }
- source.postMessage("cytube-changepass:"+JSON.stringify(data), document.location);
- });
- });