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

« back to all changes in this revision

Viewing changes to groupchat_invite.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 - Invite</title>
5
 
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
6
 
    <script src="shared.js"></script>
7
 
    <script src="switchStyle.js"></script>
8
 
    <script src="jsjac.js"></script>
9
 
    <script>
10
 
      <!--
11
 
 
12
 
function doSub() {
13
 
  if (document.forms[0].invite[0].checked) {
14
 
        srcW.openGroupchat(to,srcW.jid.substring(0,srcW.jid.indexOf('@')),pass);
15
 
  } else { // decline
16
 
        var aMessage = new JSJaCMessage();
17
 
        aMessage.setTo(to);
18
 
        var x = aMessage.appendNode('x', {'xmlns': 'http://jabber.org/protocol/muc#user'});
19
 
        var decline = x.appendChild(aMessage.getDoc().createElement('decline'));
20
 
        decline.setAttribute('to',from);
21
 
        if (document.forms[0].reason.value != '')
22
 
          decline.appendChild(aMessage.getDoc().createElement('reason')).appendChild(aMessage.getDoc().createTextNode(document.forms[0].reason.value));
23
 
        srcW.con.send(aMessage);
24
 
  }
25
 
  window.close();
26
 
}
27
 
 
28
 
var srcW, to, from, pass;
29
 
function init() {
30
 
        srcW = opener;
31
 
 
32
 
        getArgs();
33
 
        
34
 
        to = passedArgs['to'];
35
 
        from = passedArgs['from'];
36
 
        pass = passedArgs['pass'];
37
 
        var reason = passedArgs['reason'];
38
 
 
39
 
        document.getElementById('to').innerHTML = to;
40
 
        document.getElementById('from').innerHTML = "<span class=\"link\" onClick=\"return srcW.openUserInfo('"+from+"');\">"+from+"</span>";
41
 
 
42
 
        if (typeof(reason) != 'undefined' && reason != 'undefined')
43
 
                document.getElementById('reason').innerHTML = htmlEnc(reason);
44
 
        else
45
 
                document.getElementById('reason').innerHTML = "None Given";
46
 
 
47
 
        document.title = "Invitation to "+to;
48
 
}
49
 
 
50
 
onload = init;
51
 
      //-->
52
 
    </script>
53
 
  <body style="margin:8px;">
54
 
                <table width="100%" height="100%">
55
 
                <tr><td colspan=2><h2 id="title">Groupchat Invitation</h2></td></tr>
56
 
                <tr><td>Room:</td><td id="to"></td></tr>
57
 
                <tr><td>From:</td><td id="from"></td></tr>
58
 
                <tr><td>Reason:</td><td id="reason"></td></tr>
59
 
                <tr><td colspan=2><hr noshade size=1></td></tr>
60
 
    <form name="sub" onsubmit="return doSub();">
61
 
                <tr><td colspan=2 width="100%" height="100%">
62
 
                <table width="100%" height="100%">
63
 
                <tr><td><input type=radio name="invite" value="join" id="join" checked></td><td><label for="join">Join</label></td></tr>
64
 
                <tr><td><input type=radio name="invite" value="decline" id="decline"></td><td><label for="decline">Decline</label></td></tr>
65
 
                <tr><td>&nbsp;</td><td>Reason:</td></tr>
66
 
                <tr>
67
 
                <td>&nbsp;</td>
68
 
                <td width="100%" height="100%">
69
 
                <textarea name="reason" style="width:100%;height:100%"></textarea>
70
 
                </td>
71
 
                </tr>
72
 
                </table>
73
 
                </td></tr>
74
 
                <tr><td colspan=2><hr noshade size=1></td></tr>
75
 
                <tr><td colspan=2 align=right>
76
 
                <button type=submit>Submit</button>
77
 
    </form>
78
 
                <td></tr>
79
 
                </table>
80
 
  </body>
81
 
</html>