Permalink
Browse files

web: fix JS

  • Loading branch information...
1 parent 5aa4dd0 commit ef482872e317d38da72d5b90999a5ff7709521eb @billiob billiob committed Jul 20, 2010
Showing with 9 additions and 14 deletions.
  1. +9 −14 amsn2/ui/front_ends/web/static/backend.js
@@ -280,14 +280,13 @@ function hideMainWindow()
{
$("div.mainWindow").hide("slow");
}
-function setMainWindowTitle(titleL)
+function setMainWindowTitle(title)
{
- $(".mainWindow .ui-dialog-title").text(titleL.pop());
+ $(".mainWindow .ui-dialog-title").text(title);
}
-function onConnecting(mesgL)
+function onConnecting(msg)
{
- var mesg = mesgL.pop();
- $(".message").text(mesg);
+ $(".message").text(msg);
}
function showLogin()
{
@@ -308,9 +307,9 @@ function setImageSplashScreen()
{
// TODO
}
-function setTextSplashScreen(textL)
+function setTextSplashScreen(txt)
{
- $("div.splashScreen").text(textL.pop());
+ $("div.splashScreen").text(txt);
}
function showSplashScreen()
{
@@ -378,16 +377,13 @@ function contactUpdated(contactV)
var chatWindows = {};
var chatWidgets = {};
-function newChatWindow(uidL)
+function newChatWindow(uid)
{
- var uid = uidL.pop();
chatWindows[uid] = new ChatWindow(uid);
}
-function addChatWidget(uidL)
+function addChatWidget(windowUid, widgetUid)
{
- var windowUid = uidL.shift();
- var widgetUid = uidL.shift();
chatWindows[windowUid].addChatWidget(chatWidgets[widgetUid]);
}
@@ -403,9 +399,8 @@ function hideChatWindow(uidL)
chatWindows[uid].hide();
}
-function newChatWidget(uidL)
+function newChatWidget(uid)
{
- var uid = uidL.pop();
chatWidgets[uid] = new ChatWidget(uid);
}

0 comments on commit ef48287

Please sign in to comment.