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

« back to all changes in this revision

Viewing changes to groupchat_iroster.html.ca_ES

  • 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 - Roster</title>
5
 
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
6
 
    <script src="switchStyle.js"></script>
7
 
    <script language="JavaScript1.2">
8
 
function toggleGrp(name) {
9
 
  parent.top.user.roster.toggleGrp(name);
10
 
}
11
 
 
12
 
function updateStyleIE() {
13
 
  try {
14
 
    if (parent.top.user && parent.top.user.roster)
15
 
      parent.top.user.roster.updateStyleIE();
16
 
  } catch(e) {}
17
 
}
18
 
onresize = updateStyleIE;
19
 
    </script>
20
 
    <style>
21
 
    body { background-color: white; }
22
 
    </style>
23
 
  </head>
24
 
  <body>
25
 
    <div id="ie5menu" class="skin0" onMouseover="highlightie5(event)" onMouseout="lowlightie5(event)" onClick="jumptoie5(event)" display:none>
26
 
      <nobr><div class="menuitems" func="user.roster.openChat">Start Chat</div></nobr>
27
 
    <hr noshade size=1>
28
 
    <nobr><div class="menuitems" func="changeRole" param="'none',1">Kick</div></nobr>
29
 
    <nobr><div class="menuitems" func="changeAffiliation" param="'outcast',1">Ban</div></nobr>
30
 
    <nobr><div class="menuitems" func="changeRole" param="'participant'">Grant Voice</div></nobr>
31
 
    <nobr><div class="menuitems" func="changeRole" param="'visitor'">Revoke Voice</div></nobr>
32
 
    <nobr><div class="menuitems" func="changeAffiliation" param="'member'">Grant Membership</div></nobr>
33
 
    <nobr><div class="menuitems" func="changeAffiliation" param="'none'">Revoke Membership</div></nobr>
34
 
    <nobr><div class="menuitems" func="changeRole" param="'moderator'">Grant Moderator Privilege</div></nobr>
35
 
    <nobr><div class="menuitems" func="changeRole" param="'participant'">Revoke Moderator Privilege</div></nobr>
36
 
    <nobr><div class="menuitems" func="changeAffiliation" param="'admin'">Grant Administrative Privilege</div></nobr>
37
 
    <nobr><div class="menuitems" func="changeAffiliation" param="'member'">Revoke Administrative Privilege</div></nobr>
38
 
    <hr noshade size=1>
39
 
    <nobr><div class="menuitems" func="srcW.openUserInfo">Show Info</div></nobr>
40
 
  </div>
41
 
    
42
 
    <div id="roster" class="roster">
43
 
    </div>
44
 
    
45
 
    <script language="JavaScript1.2">
46
 
      
47
 
                                                                                                  //set this variable to 1 if you wish the URLs of the highlighted menu to be displayed in the status bar
48
 
var display_url=0;
49
 
 
50
 
var ie5=document.all&&document.getElementById;
51
 
var ns6=document.getElementById&&!document.all;
52
 
if (ie5||ns6)
53
 
  var menuobj=document.getElementById("ie5menu");
54
 
      
55
 
var selobj;
56
 
function showmenuie5(e){
57
 
  var firingobj=ie5? event.srcElement : e.target;
58
 
  while (firingobj && (!firingobj.className || (firingobj.className != "rosterUser" && firingobj.className != "rosterUserSelected")))
59
 
    firingobj = firingobj.parentNode;
60
 
  if (!firingobj || (firingobj.className != "rosterUser" && firingobj.className != "rosterUserSelected"))
61
 
    return false;
62
 
  
63
 
  selobj = firingobj;
64
 
  selectUser(selobj);
65
 
  //Find out how close the mouse is to the corner of the window
66
 
  var rightedge=ie5? document.body.clientWidth-event.clientX : window.innerWidth-e.clientX;
67
 
  var bottomedge=ie5? document.body.clientHeight-event.clientY : window.innerHeight-e.clientY;
68
 
  
69
 
  //if the horizontal distance isn't enough to accomodate the width of the context menu
70
 
  if (rightedge<menuobj.offsetWidth) {
71
 
    //move the horizontal position of the menu to the left by it's width
72
 
    menuobj.style.left=ie5? document.body.scrollLeft+event.clientX-menuobj.offsetWidth : window.pageXOffset+e.clientX-menuobj.offsetWidth;
73
 
    if (menuobj.style.left < "2px")
74
 
      menuobj.style.left = "2px";
75
 
  }
76
 
  else
77
 
    //position the horizontal position of the menu where the mouse was clicked
78
 
    menuobj.style.left=ie5? document.body.scrollLeft+event.clientX : window.pageXOffset+e.clientX
79
 
      
80
 
      //same concept with the vertical position
81
 
      if (bottomedge<menuobj.offsetHeight) {
82
 
        menuobj.style.top=ie5? document.body.scrollTop+event.clientY-menuobj.offsetHeight : window.pageYOffset+e.clientY-menuobj.offsetHeight
83
 
        if (menuobj.style.top < "2px")
84
 
          menuobj.style.top = "2px";
85
 
      }
86
 
      else
87
 
        menuobj.style.top=ie5? document.body.scrollTop+event.clientY : window.pageYOffset+e.clientY
88
 
          
89
 
          menuobj.style.visibility="visible"
90
 
          return false
91
 
          }
92
 
 
93
 
function hidemenuie5(e){
94
 
  menuobj.style.visibility="hidden"
95
 
    }
96
 
 
97
 
function highlightie5(e){
98
 
  var firingobj=ie5? event.srcElement : e.target;
99
 
  if (firingobj.className=="menuitems"||ns6&&firingobj.parentNode.className=="menuitems"){
100
 
    if (ns6&&firingobj.parentNode.className=="menuitems") firingobj=firingobj.parentNode; //up one node
101
 
    firingobj.style.backgroundColor="highlight";
102
 
    firingobj.style.color="white";
103
 
    if (display_url==1)
104
 
      window.status=event.srcElement.url;
105
 
  }
106
 
}
107
 
 
108
 
function lowlightie5(e){
109
 
  var firingobj=ie5? event.srcElement : e.target;
110
 
  if (firingobj.className=="menuitems"||ns6&&firingobj.parentNode.className=="menuitems"){
111
 
    if (ns6&&firingobj.parentNode.className=="menuitems") firingobj=firingobj.parentNode; //up one node
112
 
    firingobj.style.backgroundColor="";
113
 
    firingobj.style.color="black";
114
 
    window.status='';
115
 
  }
116
 
}
117
 
 
118
 
function jumptoie5(e){
119
 
  var firingobj=ie5? event.srcElement : e.target;
120
 
  if (firingobj.className=="menuitems"||ns6&&firingobj.parentNode.className=="menuitems"){
121
 
    if (ns6&&firingobj.parentNode.className=="menuitems") firingobj=firingobj.parentNode;
122
 
    if (firingobj.getAttribute("func")) {
123
 
      var jid = selobj.id.substring(0,selobj.id.lastIndexOf("/"));
124
 
      eval("parent.top."+firingobj.getAttribute("func")+"('"+jid+"',"+firingobj.getAttribute("param")+")");
125
 
    }
126
 
  }
127
 
}
128
 
 
129
 
var lastUserSelected;
130
 
function selectUser(el) {
131
 
  if(lastUserSelected)
132
 
    lastUserSelected.className = "rosterUser";
133
 
  el.className = "rosterUserSelected";
134
 
  lastUserSelected = el;
135
 
}
136
 
 
137
 
function userClicked(el,jid) {
138
 
  selectUser(el);
139
 
  return parent.top.user.roster.openChat(jid);
140
 
}
141
 
if (ie5||ns6){
142
 
  menuobj.style.display='';
143
 
  document.oncontextmenu=showmenuie5;
144
 
  document.onclick=hidemenuie5;
145
 
}
146
 
    </script>
147
 
  </body>
148
 
</html>