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 Document.js ...


From: Raphaël Semeteys
Subject: [Qsos-commits] qsos/apps/xuleditor/chrome/content Document.js ...
Date: Thu, 15 Feb 2007 17:24:33 +0000

CVSROOT:        /sources/qsos
Module name:    qsos
Changes by:     Raphaël Semeteys <rsemeteys>   07/02/15 17:24:32

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

Log message:
        minor improvements

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qsos/apps/xuleditor/chrome/content/Document.js?cvsroot=qsos&r1=1.13&r2=1.14
http://cvs.savannah.gnu.org/viewcvs/qsos/apps/xuleditor/chrome/content/editor.js?cvsroot=qsos&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/qsos/apps/xuleditor/chrome/content/editor.xul?cvsroot=qsos&r1=1.17&r2=1.18

Patches:
Index: Document.js
===================================================================
RCS file: /sources/qsos/qsos/apps/xuleditor/chrome/content/Document.js,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- Document.js 15 Feb 2007 07:10:25 -0000      1.13
+++ Document.js 15 Feb 2007 17:24:32 -0000      1.14
@@ -1,5 +1,5 @@
 /*
-**  Copyright (C) 2006 Atos Origin 
+**  Copyright (C) 2006, 2007 Atos Origin 
 **
 **  Author: Rapha� Semeteys <address@hidden>
 **

Index: editor.js
===================================================================
RCS file: /sources/qsos/qsos/apps/xuleditor/chrome/content/editor.js,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- editor.js   15 Feb 2007 07:11:41 -0000      1.18
+++ editor.js   15 Feb 2007 17:24:32 -0000      1.19
@@ -1,5 +1,5 @@
 /*
-**  Copyright (C) 2007 Atos Origin 
+**  Copyright (C) 2006, 2007 Atos Origin 
 **
 **  Author: Raphael Semeteys <address@hidden>
 **
@@ -54,7 +54,7 @@
        openRemoteFile(url)
     }
 
-    //Chat stuff
+    //Chat stuff (using xmpp4moz extension)
 
     channel = XMPP.createChannel(
         <query xmlns="http://jabber.org/protocol/disco#info";>
@@ -70,8 +70,7 @@
             conversation.value +=
                 (message.direction == 'out' ? 'Me' : address@hidden) + ' : ' +
                 message.stanza.body + '\n';
-            conversation.scrollTop += conversation.scrollHeight - 
conversation.clientHeight;
-            //document.getElementById('conversation').scrollIntoView(false);
+            conversation.inputField.scrollTop = 
conversation.inputField.scrollHeight - conversation.inputField.clientHeight;
         });
 
     XMPP.cache.presenceIn.forEach(receivedPresence);
@@ -86,10 +85,12 @@
       </presence>);
 }
 
+//Callback function for presence notification
 function receivedPresence(presence) {
   document.getElementById("roster").value += address@hidden + '\n';
 }
 
+//Callback function for message sending
 function send() {
     var input = document.getElementById('input').value;
     XMPP.send(account, <message to={chatroom} 
type='groupchat'><body>{input}</body></message>);
@@ -553,6 +554,7 @@
        }
 }
 
+//Forces the selection of element with id in the criteria tree
 function selectItem(id) {
         expandTree(true);
         tree = document.getElementById("mytree");

Index: editor.xul
===================================================================
RCS file: /sources/qsos/qsos/apps/xuleditor/chrome/content/editor.xul,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- editor.xul  15 Feb 2007 07:13:23 -0000      1.17
+++ editor.xul  15 Feb 2007 17:24:32 -0000      1.18
@@ -135,11 +135,18 @@
               <textbox id="conversation" multiline="true" rows="20" 
readonly="true"/>
               <label value="Say something" control="input" accesskey="a"/>
               <textbox id="input" multiline="true" rows="2"/>
+              <hbox>
+                <spacer flex="1"/>
               <button label="Send!" oncommand="send();" accesskey="S"/>
+                <spacer flex="1"/>
+              </hbox>
             </vbox>
           </hbox>
           <splitter/>
-          <textbox id="roster" multiline="true" readonly="true"/>
+          <vbox>
+            <label value="Participants"/>
+            <textbox id="roster" multiline="true" flex="1" readonly="true"/>
+          </vbox>
         </tabpanel>
       </tabpanels>
       </tabbox>




reply via email to

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