qsos-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qsos-commits] qsos/apps/xuleditor/chrome/content editor.js


From: Raphaël Semeteys
Subject: [Qsos-commits] qsos/apps/xuleditor/chrome/content editor.js
Date: Sat, 24 Feb 2007 23:37:14 +0000

CVSROOT:        /sources/qsos
Module name:    qsos
Changes by:     Raphaël Semeteys <rsemeteys>   07/02/24 23:37:14

Modified files:
        apps/xuleditor/chrome/content: editor.js 

Log message:
        Chat disconnection

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qsos/apps/xuleditor/chrome/content/editor.js?cvsroot=qsos&r1=1.20&r2=1.21

Patches:
Index: editor.js
===================================================================
RCS file: /sources/qsos/qsos/apps/xuleditor/chrome/content/editor.js,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- editor.js   24 Feb 2007 23:02:37 -0000      1.20
+++ editor.js   24 Feb 2007 23:37:14 -0000      1.21
@@ -23,6 +23,7 @@
 **
 ** TODO:
 **    - Chat: find a way to colorize text in "conversation" textbox
+**    - Chat: let user change it's nickname
 */
 
 //Object "Document" representing data in the QSOS XML file
@@ -225,9 +226,11 @@
   return false;
 }
 
-function quit() {
-  if (con && con.connected())
+//Disconnect from groupchat
+function doLogout() {
+  if (con && con.connected()) {
     con.disconnect();
+  }
 }
 
 ////////////////////////////////////////////////////////////////////
@@ -557,6 +560,7 @@
 //////////////////////////
 //Exits application
 function exit() {
+        doLogout();
        self.close();
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]