openmeetings-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From solo...@apache.org
Subject svn commit: r1451539 - /openmeetings/trunk/singlewebapp/WebContent/src/modules/conference/sip/sipDialer.lzx
Date Fri, 01 Mar 2013 09:13:55 GMT
Author: solomax
Date: Fri Mar  1 09:13:55 2013
New Revision: 1451539

URL: http://svn.apache.org/r1451539
Log:
SIP: last sip number dialed is stored in userdata

Modified:
    openmeetings/trunk/singlewebapp/WebContent/src/modules/conference/sip/sipDialer.lzx

Modified: openmeetings/trunk/singlewebapp/WebContent/src/modules/conference/sip/sipDialer.lzx
URL: http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/WebContent/src/modules/conference/sip/sipDialer.lzx?rev=1451539&r1=1451538&r2=1451539&view=diff
==============================================================================
--- openmeetings/trunk/singlewebapp/WebContent/src/modules/conference/sip/sipDialer.lzx (original)
+++ openmeetings/trunk/singlewebapp/WebContent/src/modules/conference/sip/sipDialer.lzx Fri
Mar  1 09:13:55 2013
@@ -65,6 +65,9 @@
         <simpleLabelButton labelid="1448" name="callButton">
             <handler name="onclick">
                 parent.parent.joinToConfCall.doCall();
+                var g = canvas.getUserData();
+                g["lastsipnumber"] = parent.parent.phoneNumber.input.getText();
+                canvas.setUserData(g);
             </handler>
         </simpleLabelButton>
         <simpleLabelButton labelid="85" name="closeButton">
@@ -74,12 +77,17 @@
             </handler>
         </simpleLabelButton>
     </hbox>
-    <handler name="oninit">
-        if(canvas.sipDialer != null) {
-            canvas.sipDialer.destroy();
-        }
-        canvas.setAttribute('sipDialer', this);
-        this.bringToFront();
+
+	<handler name="oninit">
+		if(canvas.sipDialer != null) {
+			canvas.sipDialer.destroy();
+		}
+		canvas.setAttribute('sipDialer', this);
+		var lastNum = canvas.getUserData()["lastsipnumber"];
+		if(lastNum != undefined) {
+			this.phoneNumber.input.setAttribute('text', lastNum);
+		}
+		this.bringToFront();
     </handler>
 
     <method name="dial" args="digit">



Mime
View raw message