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

« back to all changes in this revision

Viewing changes to iRoster.html.vi_VN

  • 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.roster.toggleGrp(name);
10
 
      }
11
 
    </script>
12
 
  </head>
13
 
  <body class="roster">
14
 
    <div id="ie5menu" class="skin0" onMouseover="highlightie5(event)" onMouseout="lowlightie5(event)" onClick="jumptoie5(event)" display:none>
15
 
    <nobr><div class="menuitems" func="roster.openChat">Start Chat</div></nobr>
16
 
                <nobr><div class="menuitems" func="roster.openMessage">Send Message</div></nobr>
17
 
    <nobr><div class="menuitems" func="openCustomPresence">Presence</div></nobr>
18
 
    <nobr><div class="menuitems" func="openUserProps">Edit User</div></nobr>
19
 
    <nobr><div class="menuitems" func="openUserInfo">Show Info</div></nobr>
20
 
    <nobr><div class="menuitems" func="openUserHistory" id='hist_menuitem'>History</div></nobr>
21
 
    <nobr><div class="menuitems" func="openUserNote">Edit Note</div></nobr>
22
 
    <div class="menuitems" func="openSubscription">Resubscribe</div>
23
 
    <div class="menuitems" func="removeUser">Remove</div>
24
 
  </div>
25
 
    <div id="gwMenu" class="skin0" onMouseover="highlightie5(event)" onMouseout="lowlightie5(event)" onClick="jumptoie5(event)" display:none>
26
 
    <nobr><div class="menuitems" func="openCustomPresence">Presence</div></nobr>
27
 
    <nobr><div class="menuitems" func="openUserProps">Edit</div></nobr>
28
 
    <nobr><div class="menuitems" func="openUserInfo">Show Info</div></nobr>
29
 
  </div>
30
 
    <div id="gChatMenu" class="skin0" onMouseover="highlightie5(event)" onMouseout="lowlightie5(event)" onClick="jumptoie5(event)" display:none>
31
 
    <nobr><div class="menuitems" func="openGroupchat">Show</div></nobr>
32
 
    <nobr><div class="menuitems" func="openCustomPresence">Presence</div></nobr>
33
 
    <nobr><div class="menuitems" func="openUserInfo">Show Info</div></nobr>
34
 
  </div>
35
 
 
36
 
    <div id="roster" class="roster">
37
 
    </div>
38
 
 
39
 
    <script language="JavaScript1.2">
40
 
 
41
 
/* set this variable to 1 if you wish the URLs of the highlighted menu
42
 
 * to be displayed in the status bar 
43
 
 */
44
 
var display_url=0;
45
 
 
46
 
var ie5=document.all&&document.getElementById;
47
 
var ns6=document.getElementById&&!document.all;
48
 
if (ie5||ns6)
49
 
  var menuobj=document.getElementById("ie5menu");
50
 
if (ie5||ns6)
51
 
  var gwMenu=document.getElementById("gwMenu");
52
 
if (ie5||ns6)
53
 
  var gChatMenu=document.getElementById("gChatMenu");
54
 
 
55
 
var selobj;
56
 
function showmenuie5(e){
57
 
  
58
 
  var firingobj=ie5? event.srcElement : e.target;
59
 
  while (firingobj && (!firingobj.className || (firingobj.className != "rosterUser" && firingobj.className != "rosterUserSelected")))
60
 
    firingobj = firingobj.parentNode;
61
 
  if (!firingobj || (firingobj.className != "rosterUser" && firingobj.className != "rosterUserSelected"))
62
 
    return false;
63
 
  
64
 
  selobj = firingobj;
65
 
  selectUser(selobj);
66
 
 
67
 
  var user = parent.top.roster.getUserByJID(parent.top.cutResource(firingobj.id));
68
 
 
69
 
  if (parent.top.isGateway(firingobj.id))
70
 
    menuobj = gwMenu;
71
 
  else if (user && typeof(user.type) != 'undefined' && user.type == 'groupchat')
72
 
    menuobj = gChatMenu;
73
 
  else
74
 
    menuobj = document.getElementById("ie5menu");
75
 
 
76
 
  //Find out how close the mouse is to the corner of the window
77
 
  var rightedge=ie5? document.body.clientWidth-event.clientX : window.innerWidth-e.clientX;
78
 
  var bottomedge=ie5? document.body.clientHeight-event.clientY : window.innerHeight-e.clientY;
79
 
  
80
 
  //if the horizontal distance isn't enough to accomodate the width of the context menu
81
 
  if (rightedge<menuobj.offsetWidth) {
82
 
    //move the horizontal position of the menu to the left by it's width
83
 
    menuobj.style.left=ie5? document.body.scrollLeft+event.clientX-menuobj.offsetWidth : window.pageXOffset+e.clientX-menuobj.offsetWidth;
84
 
    if (menuobj.style.left < "2px")
85
 
      menuobj.style.left = "2px";
86
 
  }
87
 
  else
88
 
    //position the horizontal position of the menu where the mouse was clicked
89
 
    menuobj.style.left=ie5? document.body.scrollLeft+event.clientX : window.pageXOffset+e.clientX;
90
 
      
91
 
  //same concept with the vertical position
92
 
  if (bottomedge<menuobj.offsetHeight) {
93
 
    menuobj.style.top=ie5? document.body.scrollTop+event.clientY-menuobj.offsetHeight : window.pageYOffset+e.clientY-menuobj.offsetHeight;
94
 
    if (menuobj.style.top < "2px")
95
 
      menuobj.style.top = "2px";
96
 
  }
97
 
  else
98
 
    menuobj.style.top=ie5? document.body.scrollTop+event.clientY : window.pageYOffset+e.clientY;
99
 
  
100
 
  if (typeof(top.loghost) == 'undefined')
101
 
    document.getElementById('hist_menuitem').style.display = 'none';
102
 
 
103
 
  menuobj.style.visibility="visible";
104
 
  return false;
105
 
}
106
 
 
107
 
function hidemenuie5(e){
108
 
  menuobj.style.visibility="hidden";
109
 
}
110
 
 
111
 
function highlightie5(e){
112
 
  var firingobj=ie5? event.srcElement : e.target;
113
 
  if (firingobj.className=="menuitems"||ns6&&firingobj.parentNode.className=="menuitems"){
114
 
    if (ns6&&firingobj.parentNode.className=="menuitems") firingobj=firingobj.parentNode; //up one node
115
 
    firingobj.style.backgroundColor="Highlight";
116
 
//     firingobj.style.color="HighlightText";
117
 
    firingobj.style.color="black";
118
 
    if (display_url==1)
119
 
      window.status=event.srcElement.url;
120
 
  }
121
 
}
122
 
 
123
 
function lowlightie5(e){
124
 
  var firingobj=ie5? event.srcElement : e.target;
125
 
  if (firingobj.className=="menuitems"||ns6&&firingobj.parentNode.className=="menuitems"){
126
 
    if (ns6&&firingobj.parentNode.className=="menuitems") firingobj=firingobj.parentNode; //up one node
127
 
    firingobj.style.backgroundColor="Menu";
128
 
//     firingobj.style.color="MenuText";
129
 
    firingobj.style.color="black";
130
 
    window.status='';
131
 
  }
132
 
}
133
 
 
134
 
function jumptoie5(e){
135
 
  var firingobj=ie5? event.srcElement : e.target;
136
 
  if (firingobj.className=="menuitems"||ns6&&firingobj.parentNode.className=="menuitems"){
137
 
    if (ns6&&firingobj.parentNode.className=="menuitems") firingobj=firingobj.parentNode;
138
 
    if (firingobj.getAttribute("func")) {
139
 
      var jid = selobj.id.substring(0,selobj.id.indexOf("/"));
140
 
      eval("parent.top."+firingobj.getAttribute("func")+"('"+jid+"')");
141
 
    }
142
 
  }
143
 
}
144
 
 
145
 
var lastUserSelected;
146
 
function selectUser(el) {
147
 
  if(lastUserSelected)
148
 
    lastUserSelected.className = "rosterUser";
149
 
  el.className = "rosterUserSelected";
150
 
  lastUserSelected = el;
151
 
}
152
 
 
153
 
function userClicked(el,jid) {
154
 
  selectUser(el);
155
 
 
156
 
  var user = parent.top.roster.getUserByJID(parent.top.cutResource(jid));
157
 
 
158
 
  if(user && typeof(user.type) != 'undefined' && user.type == 'groupchat')
159
 
    return parent.top.openGroupchat(jid);
160
 
 
161
 
  if (!parent.top.isGateway(jid))
162
 
    return parent.top.roster.openChat(jid);
163
 
}
164
 
if (ie5||ns6){
165
 
  menuobj.style.display='';
166
 
  document.oncontextmenu=showmenuie5;
167
 
  document.onclick=hidemenuie5;
168
 
}
169
 
    </script>
170
 
  </body>
171
 
</html>