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

« back to all changes in this revision

Viewing changes to changestatus.html.sk

  • 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 - Zmeniť stav online</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>
9
 
      <!--
10
 
var jid;
11
 
var srcW; // the source window with necessary data
12
 
 
13
 
function doSubmit() {
14
 
  var newstat, away;
15
 
  
16
 
  for (var el=0;el<document.statF.status.length;el++) {
17
 
    if (document.statF.status[el].checked) {
18
 
      newstat = document.statF.status[el].value;
19
 
      break;
20
 
    }
21
 
  }
22
 
 
23
 
  if (document.statF.msg.value && document.statF.msg.value != '')
24
 
    away = document.statF.msg.value;
25
 
  else
26
 
    away = opener.top.onlstatus[newstat];
27
 
 
28
 
        if (typeof(jid) != 'undefined' && jid != '')
29
 
                opener.top.sendCustomPresence(jid,newstat,away);
30
 
        else
31
 
                opener.top.changeStatus(newstat,away);
32
 
  
33
 
  window.close();
34
 
}
35
 
 
36
 
var jid;
37
 
function init() {
38
 
        getArgs();
39
 
        jid = passedArgs['jid'];
40
 
  for (var el=0;el<document.statF.status.length;el++) {
41
 
                var presence = (typeof(jid)!='undefined')?opener.roster.getUserByJID(jid).status:opener.top.onlstat;
42
 
    if (document.statF.status[el].value == presence) {
43
 
      document.statF.status[el].checked = true;
44
 
      break;
45
 
    }
46
 
  }
47
 
  if (typeof(opener.top.pass)=='undefined')
48
 
    document.getElementById('offline').style.display = 'none';
49
 
 
50
 
}
51
 
                
52
 
function keyPressed(e) {
53
 
  if (e.ctrlKey && e.keyCode == 13)
54
 
    doSubmit();
55
 
  else if (e.keyCode == 27)
56
 
    window.close();
57
 
}
58
 
onkeydown = keyPressed;
59
 
onload = init;
60
 
      //-->
61
 
    </script>
62
 
    <script for="document" event="onkeydown()" language="JScript">
63
 
      <!--
64
 
      if (window.event.ctrlKey && window.event.keyCode == 13)
65
 
      sendSub();
66
 
      if (window.event.keyCode == 27)
67
 
      window.close();
68
 
      //-->
69
 
    </script>
70
 
  </head>
71
 
  <body style="margin:8px">
72
 
    <form name="statF">
73
 
      <table width="100%" height="100%" border=0 cellpadding=0 cellspacing=0 style="margin-bottom: 8px;">
74
 
          <tr>
75
 
            <td><input type=radio name="status" value="available" id="available"><label for="available"><img src="images/available.gif"> online</label></td>
76
 
            <td><input type=radio name="status" value="xa" id="xa"><label for="xa"><img src="images/xa.gif"> nedostupný</label></td>
77
 
          </tr>
78
 
          <tr>
79
 
            <td><input type=radio name="status" value="chat" id="chaty"><label for="chaty"><img src="images/chat.gif"> diskusie chtivý</label></td>
80
 
            <td><input type=radio name="status" value="dnd" id="dnd"><label for="dnd"><img src="images/dnd.gif"> nevyrušovať</label></td>
81
 
          </tr>
82
 
          <tr>
83
 
            <td><input type=radio name="status" value="away" id="away"><label for="away"><img src="images/away.gif"> preč</label></td>
84
 
            <td><input type=radio name="status" value="unavailable" id="unavailable"><label for="unavailable"><img src="images/invisible.gif"> Neviditeľný(á)</label></td>
85
 
          </tr>
86
 
          <tr id="offline">
87
 
            <td>&nbsp;</td><td><input type=radio name="status" value="offline" id="offl"><label for="offl"><img src="images/unavailable.gif"> offline</label></td>
88
 
          </tr>
89
 
          <tr><td colspan=2><b>Správa o stave:</b></td></tr>
90
 
          <tr height="100%"><td colspan=2><textarea id="msg" wrap="physical" class="msgBox"></textarea></td></tr>
91
 
          <tr><td colspan=2><hr noshade size="1" size="100%"></td></tr>
92
 
          <tr><td colspan=2 align="right" id="buttonbox"><button onClick="window.close();">Zrušiť</button>&nbsp;<button onClick="return doSubmit();">Nastaviť</button></td></tr>
93
 
      </table>
94
 
    </form>
95
 
  </body>
96
 
</html>