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

« back to all changes in this revision

Viewing changes to src/groupchatconfig.html

  • 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><l>JWChat - Channel Config for</l></title>
 
5
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
 
6
    <script src="shared.js"></script>
 
7
    <script src="jabber_x_data.js"></script>
 
8
    <script src="switchStyle.js"></script>
 
9
    <script src="jsjac.js"></script>
 
10
    <script>
 
11
    <!--
 
12
     
 
13
     function doSub() {
 
14
      var els = document.forms[0].elements;
 
15
      
 
16
      var iq = new JSJaCIQ();
 
17
      iq.setType('set');
 
18
      iq.setTo(opener.jid);
 
19
 
 
20
      var query = iq.setQuery('http://jabber.org/protocol/muc#owner');
 
21
 
 
22
      var xmldoc = XmlDocument.create('body','foo');
 
23
      xmldoc.loadXML('<body>'+genJabberXDataReply(document.forms[0])+'</body>');
 
24
        
 
25
      for (var i=0; i<xmldoc.firstChild.childNodes.length; i++)
 
26
        query.appendChild(xmldoc.firstChild.childNodes.item(i).cloneNode(true));
 
27
        
 
28
      srcW.Debug.log(iq.getDoc().xml,2);
 
29
        
 
30
      srcW.con.send(iq);
 
31
      window.close();
 
32
      return false;
 
33
    }
 
34
   
 
35
   function destroy() {
 
36
     reason = prompt(loc("Really destroy this room?\n\nReason:"),"");
 
37
     if (!reason)
 
38
       return false;
 
39
     
 
40
     var iq = new JSJaCIQ();
 
41
     iq.setType('set');
 
42
     iq.setTo(opener.jid);
 
43
     var query = iq.setQuery('http://jabber.org/protocol/muc#owner');
 
44
     query.appendChild(iq.getDoc().createElement('destroy')).appendChild(iq.getDoc().createElement('reason')).appendChild(iq.getDoc().createTextNode(reason));
 
45
     srcW.con.send(iq);
 
46
     window.close();
 
47
     return false;
 
48
   }
 
49
 
 
50
function handleConfig(iq) {
 
51
  srcW.Debug.log(iq.getDoc().xml,2);
 
52
 
 
53
  if (iq.getType() == 'error')
 
54
    return;
 
55
  
 
56
  if (iq.getNode().getElementsByTagName('x').length && iq.getNode().getElementsByTagName('x').item(0).getAttribute('xmlns') == 'jabber:x:data')
 
57
    document.getElementById("jabberXDataForm").innerHTML = genJabberXDataTable(iq.getNode().getElementsByTagName('x').item(0));
 
58
}
 
59
 
 
60
var srcW;
 
61
function init() {
 
62
  // determine source window
 
63
  srcW = opener.srcW;
 
64
 
 
65
  document.title += " " + opener.jid;
 
66
 
 
67
  var roster = srcW.roster;
 
68
 
 
69
  var iq = new JSJaCIQ();
 
70
  iq.setTo(opener.jid);
 
71
  iq.setType('get');
 
72
  iq.setQuery('http://jabber.org/protocol/muc#owner');
 
73
 
 
74
 
 
75
  me = this;
 
76
  srcW.con.send(iq, me.handleConfig);
 
77
}
 
78
 
 
79
function keyPressed(e) {
 
80
  if (e.keyCode == 13)
 
81
    return doSub();
 
82
  if (e.keyCode == 27)
 
83
    window.close();
 
84
  return true;
 
85
}
 
86
 
 
87
onkeydown = keyPressed;
 
88
onload = init;
 
89
      //-->
 
90
    </script>
 
91
    <script for="document" event="onkeydown()" language="JScript">
 
92
      <!--
 
93
      return keyPressed(window.event);
 
94
      //-->
 
95
    </script>
 
96
    <style type="text/css">
 
97
/*<![CDATA[*/
 
98
      th { font-size: 80%; text-align: right; font-weight: normal; }
 
99
/*]]>*/
 
100
    </style>
 
101
  </head>
 
102
  <body style="margin:8px;">
 
103
    <form name="sub" onsubmit="return doSub();">
 
104
      <div id="jabberXDataForm">
 
105
      </div>
 
106
      <hr noshade size="1" size="100%">
 
107
      <div align="right" id="buttonbox">
 
108
        <button onClick="return destroy();"><l>Destroy</l></button>&nbsp;<button onClick="window.close();"><l>Cancel</l></button>&nbsp;<button type="submit"><l>OK</l></button>
 
109
      </div>
 
110
    </form>
 
111
  </body>
 
112
</html>