~ubuntu-branches/ubuntu/lucid/jwchat/lucid

« back to all changes in this revision

Viewing changes to subscriptionRequest.html.sk

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2008-08-24 15:02:53 UTC
  • mfrom: (3.1.4 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080824150253-h0z39rzjmo4lc1k5
Tags: 1.0beta3-3
* Clean up README.Debian. (Closes: #481320)
* Add brazilian debconf messages translation. (Closes: #481522)
* Add swedish debconf messages translation. (Closes: #494887)
* Add italian debconf messages translation. (Closes: #495780)
* Add russian debconf messages translation. (Closes: #495573)
* Add finnish debconf messages translation. (Closes: #496227)

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 - Požiadavka na prihlásenie</title>
 
5
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
 
6
    <script src="shared.js"></script>
 
7
    <script src="emoticons.js"></script>
 
8
    <script src="switchStyle.js"></script>
 
9
    <script src="xmlextras.js"></script>
 
10
    <script src="jsjac.js"></script>
 
11
    <script>
 
12
      <!--
 
13
var jid;
 
14
var msg;
 
15
var srcW; // the source window with necessary data
 
16
 
 
17
function sendSub() {
 
18
  var aPresence = new JSJaCPresence();
 
19
  aPresence.setTo(jid);
 
20
  aPresence.setType('subscribed');
 
21
 
 
22
  srcW.con.send(aPresence);
 
23
 
 
24
  // maybe we want to subscribe to?
 
25
 
 
26
  var user = srcW.roster.getUserByJID(jid);
 
27
  if (!user || (user.subscription != 'both' && user.subscription != 'to'))
 
28
    srcW.openSubscription(jid);
 
29
 
 
30
  window.close();
 
31
}
 
32
 
 
33
function sendUnsub() {
 
34
  var aPresence = new JSJaCPresence();
 
35
  aPresence.setTo(jid);
 
36
  aPresence.setType('unsubscribed');
 
37
 
 
38
  window.close();
 
39
}    
 
40
 
 
41
function init() {
 
42
  // determine source window
 
43
  srcW = opener;
 
44
                        
 
45
  getArgs();
 
46
  jid = passedArgs['jid'];
 
47
  if (typeof(passedArgs['msg']) != 'undefined')
 
48
    msg = passedArgs['msg'];
 
49
 
 
50
  document.title = "Žiadosť o zápis od "+jid;
 
51
 
 
52
  var from = "<b><span class=\"link\" onClick=\"return srcW.openUserInfo('"+jid+"');\" title=\""+"ukázať informácie o používateľovi pre "+jid+"\">"+jid.substring(0,jid.indexOf('@'))+"</a></b> ";
 
53
  
 
54
  document.getElementById("requestingUser").innerHTML = from;
 
55
  if (msg)
 
56
    msgbox.document.body.innerHTML = msgFormat(msg);
 
57
}
 
58
                
 
59
function keyPressed(e) {
 
60
  if (e.ctrlKey && e.keyCode == 13)
 
61
    sendSub();
 
62
  else if (e.keyCode == 27)
 
63
    window.close();
 
64
}
 
65
 
 
66
onkeydown = keyPressed;
 
67
onload = init;
 
68
      //-->
 
69
    </script>
 
70
    <script for="document" event="onkeydown()" language="JScript">
 
71
      <!--
 
72
      if (window.event.ctrlKey && window.event.keyCode == 13)
 
73
      sendSub();
 
74
      if (window.event.keyCode == 27)
 
75
      window.close();
 
76
      //-->
 
77
    </script>
 
78
  </head>
 
79
  <body style="margin:8px;">
 
80
    <table  width="100%" height="100%" border=0 cellpadding=0 cellspacing=0 style="margin-bottom: 8px;">
 
81
      <tr><td>
 
82
        <span id="requestingUser"></span> chce si vás pridať do zoznamu:
 
83
      </td></tr>
 
84
      <tr height="100%"><td style="padding-top: 4px;"><iframe src="chat_iframe.html" id="msgbox" name="msgbox" scrolling="yes" class="msgbox"></iframe></td></tr>
 
85
      <form name="sub">
 
86
      <tr><td><hr noshade size="1" size="100%"></td></tr>
 
87
      <tr><td align="right">
 
88
          <button onClick="return sendUnsub();">Zamietnuť</button>&nbsp;<button onClick="return sendSub();" tabindex=1>Povoliť</button>
 
89
        </td></tr>
 
90
      </form>
 
91
    </table>
 
92
  </body>
 
93
</html>