From 96dd59f2a302495387999c09ced5e70e85dd82f3 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Sat, 18 Feb 2012 18:31:11 -0500 Subject: comestic changes --- webclient/lib/alias.js | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) (limited to 'webclient/lib') diff --git a/webclient/lib/alias.js b/webclient/lib/alias.js index 5e4714d..b8e2b15 100644 --- a/webclient/lib/alias.js +++ b/webclient/lib/alias.js @@ -25,7 +25,7 @@ var Alias = { init.c('query',{xmlns:'jabber:iq:register'}); Alias.connection.sendIQ(init, Alias.onRegister); }, - + /** * Receive registration data */ @@ -46,18 +46,17 @@ var Alias = { this.rsa = rsa; } else{ - $('#register').empty(); - //populate the register dialog + $('#register').empty();//populate the register dialog var instructions = $(iq).find('instructions'); if ( instructions.length !== 0 ){ $('#register').append('

' + instructions.text() + '

'); } $('#register').append('

Generate

'); - var result = form.xmppForm('render'); + var result = form.xmppForm('render'); $('#register').append(result); - $('#register').append(''); - - $('#generate-link').click(function(){ + $('#register').append(''); + + $('#generate-link').click(function(){ var rsa = new RSAKey(); rsa.generate(1024, "10001"); var pubkey = { @@ -76,7 +75,7 @@ var Alias = { $("#form-pubkey").val(JSON.stringify(pubkey)); $("#form-privkey").val(privkey); }); - + $('#register-button').click(function(){ var pubkey = $('
  • Jid: " + jid @@ -304,7 +303,7 @@ var Alias = { /** * Initialization after connection - * + * * Set the interface and the handlers */ onConnect: function() { @@ -443,13 +442,13 @@ $(document).ready(function(){ $('#pass').get(0).value, Alias.onStatusChanged); }); - + $('#pass').keyup(function(event) { if(event.keyCode == 13) { $('#connect').click() } }); - + $('#bottomup').click(function(){ $(this).next().slideToggle(); }); @@ -466,7 +465,7 @@ $(document).ready(function(){ var jid = Alias.getID($(this)); Alias.getHome(jid); }); - + $('.chat-link').live('click', function(event) { event.preventDefault(); var jid = $(this).attr('href'); @@ -495,8 +494,6 @@ $(document).ready(function(){ $(this).val(''); } }); - + $('#dialogs').dialog(); }); - - -- cgit v1.2.3-70-g09d2