~ubuntu-branches/ubuntu/trusty/jwchat/trusty

« back to all changes in this revision

Viewing changes to send.html.es_ga

  • Committer: Bazaar Package Importer
  • Author(s): Lincoln de Sousa, Lincoln de Sousa, Marcelo Jorge Vieira
  • Date: 2010-09-16 11:42:28 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100916114228-5s5ne28n1w6wrfbl
Tags: 1.0+dfsg-1
[Lincoln de Sousa]

* Switch to dpkg-source 3.0 (quilt) format
* Migrating package from cdbs to debhelper 7.0.50~
* Changing the rule get-orig-source to generate a dfsg compatible
  package striping swf files from the orig (Closes: #591962)
* Updated Standards-Version to 3.9.1
* Removing po-debconf from the Build-Depends-Indep list.

[Marcelo Jorge Vieira]

* Fixing the default backend
* Fixing Debugger dependency
* Changing information about packaging from old maintainers to
  Debian XMPP Team.
* Removing sound support.
* Setting a port for apache VirtualHost.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
 
<html>
3
 
  <head>
4
 
    <title>JWChat - Send Message</title>
5
 
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
6
 
    <script src="shared.js"></script>
7
 
    <script src="browsercheck.js"></script>
8
 
    <script src="switchStyle.js"></script>
9
 
    <script src="jsjac.js"></script>
10
 
    <script>
11
 
      <!--
12
 
var jid;
13
 
var srcW; // the source window with necessary data
14
 
var msgbox;
15
 
 
16
 
function sendMSG() {
17
 
  var body = msgbox.value;
18
 
  
19
 
  if (body == '') // don't send empty message
20
 
    return false;
21
 
 
22
 
        var aMessage = new JSJaCMessage();
23
 
        aMessage.setTo(jid);
24
 
  aMessage.setBody(body);
25
 
 
26
 
  if(document.forms[0].subject.value != '')
27
 
                aMessage.setSubject(document.forms[0].subject.value);
28
 
 
29
 
        srcW.con.send(aMessage);
30
 
  
31
 
        // archive message
32
 
  /* [TODO] [zeank] 20051028
33
 
   * disabled by now as not compliant with latest version of jep
34
 
   */
35
 
//      if (srcW.enableLog && typeof(srcW.loghost) != 'undefined') {
36
 
//              var aIQ = new JSJaCIQ();
37
 
//              aIQ.setType('set');
38
 
//              aIQ.setTo(srcW.loghost);
39
 
//              var aNode = aIQ.getNode().appendChild(aIQ.getDoc().createElement('archive'));
40
 
//              aNode.setAttribute('xmlns','http://jabber.org/protocol/archive');
41
 
//              aNode.appendChild(aMessage.getNode().cloneNode(true));
42
 
//              srcW.con.send(aIQ); 
43
 
//      }
44
 
  
45
 
  if (!opener.roster && srcW.roster.getUserByJID(jid).messages.length == 0)
46
 
    opener.close();
47
 
  window.close();
48
 
  return false;
49
 
}
50
 
 
51
 
function init() {
52
 
  // determine source window
53
 
  if (opener.roster)
54
 
    srcW = opener.top;
55
 
  else
56
 
    srcW = opener.opener.top;
57
 
  
58
 
  msgbox = document.forms[0].msgbox;
59
 
  msgbox.focus();
60
 
                        
61
 
  getArgs();
62
 
 
63
 
  jid = passedArgs['jid'];
64
 
  
65
 
  if (passedArgs['body']) { // quote messages
66
 
    var body = passedArgs['body'];
67
 
    body = body.replace(/^/g,"> ");
68
 
    body = body.replace(/\n/g,"\n> ");
69
 
    body += "\n";
70
 
    msgbox.value = body;
71
 
  }
72
 
  
73
 
  document.title = "Send message to "+srcW.roster.getUserByJID(jid).name;
74
 
}
75
 
 
76
 
function keyPressed(e) {
77
 
  if (e.ctrlKey && e.keyCode == 13)
78
 
    return sendMSG();
79
 
  else if (e.keyCode == 27)
80
 
    close();
81
 
}
82
 
 
83
 
onkeydown = keyPressed;
84
 
onload = init;
85
 
      //-->
86
 
    </script>
87
 
    <script for="document" event="onkeydown()" language="JScript">
88
 
      <!--
89
 
       if (window.event.ctrlKey && window.event.keyCode == 13)
90
 
         return sendMSG();
91
 
       if (window.event.keyCode == 27)
92
 
          window.close();
93
 
      //-->
94
 
    </script>
95
 
  </head>
96
 
  <body style="margin:8px;">
97
 
    <form name="msg" style="border:0;padding:0;margin:0;" onSubmit="return sendMSG();">
98
 
      <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="margin-bottom: 8px;">
99
 
          <tr width="100%">
100
 
            <td>Subject:&nbsp;</td><td width="100%"><input type="text" name="subject" size="20" style="width:100%;" tabindex="1"></td></tr>
101
 
          <tr height="100%"><td colspan="2" style="padding-top: 4px;"><textarea id="msgbox" wrap="physical" class="msgBox" tabindex="2"></textarea></td></tr>     
102
 
      
103
 
          <tr><td colspan="2"><hr noshade size="1" size="100%"></td></tr>
104
 
          <tr><td colspan="2" id="buttonbox" align="right"><button type="button" onClick="window.close();" tabindex="4">Cancel</button>&nbsp;<button type="submit" tabindex="3">Send</button></td></tr>
105
 
      </table>
106
 
    </form>
107
 
  </body>
108
 
</html>