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

« back to all changes in this revision

Viewing changes to src/groupchat_roster.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></title>
 
5
    <script src="switchStyle.js"></script>
 
6
    <script src="shared.js"></script>
 
7
                <script>
 
8
 
 
9
var editListW = new Array();
 
10
function listSelected(selector) {
 
11
        if (selector.selectedIndex == 0)
 
12
                return;
 
13
 
 
14
        var opt = selector.options[selector.selectedIndex];
 
15
        if (!editListW[opt.value] || editListW[opt.value].closed)
 
16
                editListW[opt.value] = open("groupchat_modifylist.html?"+opt.value,makeWindowName(opt.value+parent.top.jid),"width=400,height=400,resizable=yes,scrollbars=yes");
 
17
        editListW[opt.value].focus();
 
18
}
 
19
 
 
20
function updateMe() {
 
21
        var role = parent.top.roster.me.role;
 
22
        var affiliation = parent.top.roster.me.affiliation;
 
23
 
 
24
        if (role == 'moderator' || affiliation == 'admin' || affiliation == 'owner') {
 
25
                /* build list selector */
 
26
                var list_selector = document.getElementById('list_selector');
 
27
                
 
28
                // clear list
 
29
                for (var i=1; i<list_selector.options.length; i++)
 
30
                        list_selector.options[i] = null;
 
31
                
 
32
                // add items based on affiliation
 
33
                var optidx = 1;
 
34
                list_selector.options[optidx++] = new Option(loc('Voice'),"role=participant&http://jabber.org/protocol/muc#admin&"+msgEscape(loc('Voice List')));
 
35
                if (affiliation == 'admin' || affiliation == 'owner') {
 
36
                        list_selector.options[optidx++] = new Option(loc('Ban'),"affiliation=outcast&http://jabber.org/protocol/muc#admin&"+msgEscape(loc('Ban List')));
 
37
                        list_selector.options[optidx++] = new Option(loc('Member'),"affiliation=member&http://jabber.org/protocol/muc#admin&"+msgEscape(loc('Member List')));
 
38
                        list_selector.options[optidx++] = new Option(loc('Moderator'),"role=moderator&http://jabber.org/protocol/muc#admin&"+msgEscape(loc('Moderator List')));
 
39
                }
 
40
                // add even more
 
41
                if (affiliation == 'owner'){
 
42
                        list_selector.options[optidx++] = new Option(loc('Admin'),"affiliation=admin&http://jabber.org/protocol/muc#owner&"+msgEscape(loc('Admin List')));
 
43
                        list_selector.options[optidx++] = new Option(loc('Owner'),"affiliation=owner&http://jabber.org/protocol/muc#owner&"+msgEscape(loc('Owner List')));
 
44
                }
 
45
                // show list
 
46
                document.getElementById('list_editor').style.display = '';
 
47
        }
 
48
        else
 
49
                document.getElementById('list_editor').style.display = 'none';
 
50
 
 
51
}
 
52
 
 
53
function cleanUp() {
 
54
        // close windows
 
55
        for (var i=0;i<editListW.length; i++)
 
56
                if (editListW[i] && !editListW[i].closed)
 
57
                        editListW[i].close();
 
58
 
59
 
 
60
onunload = cleanUp;
 
61
                </script>
 
62
  </head>
 
63
  <body style="margin:8px;">
 
64
                <table width="100%" height="100%" style="margin: 0px; padding: 0px; border: 0;">
 
65
                                <tr>
 
66
                                        <td height="100%" width="100%"><iframe src="groupchat_iroster.html" id="groupchatIRoster" name="groupchatIRoster" scrolling="auto" style="width:100%;height:100%;border:2px groove;" frameborder=0></iframe></td></tr>
 
67
                                <tr id="list_editor" style="display:none;">
 
68
                                        <td width="100%"><div style="font-size: 0.8em;"><l>Modify List</l></div>
 
69
                                                <select id="list_selector" style="width: 100%; font-size: 0.8em;" onChange="listSelected(this);">
 
70
                                                        <option value=''>&nbsp;</option></td></tr>
 
71
                        </table>
 
72
  </body>
 
73
</html>