Mercurial > prosody-modules
diff mod_admin_web/admin_web/www_files/js/main.js @ 294:5a619d6045a8
mod_admin_web: Prepare for adding more features
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Thu, 23 Dec 2010 22:40:58 +0100 |
parents | a9e69088e678 |
children | a70284e01453 |
line wrap: on
line diff
--- a/mod_admin_web/admin_web/www_files/js/main.js Thu Dec 23 20:48:24 2010 +0000 +++ b/mod_admin_web/admin_web/www_files/js/main.js Thu Dec 23 22:40:58 2010 +0100 @@ -78,7 +78,9 @@ button.value = 'connect'; pass.show(); jid.show(); - $('.container').hide(); + $('#menu').hide(); + $('#adhoc').hide(); + $('#s2sList').hide(); $('#cred label').show(); $('#cred br').show(); $('ul').empty(); @@ -92,7 +94,8 @@ button.value = 'disconnect'; pass.hide(); jid.hide(); - $('.container').show(); + $('#menu').show(); + $('#adhoc').show(); $('#cred label').hide(); $('#cred br').hide(); } @@ -107,7 +110,7 @@ $("#log_toggle").click(function () { $("#log").toggle(); - }); + }); $('#cred').bind('submit', function (event) { var button = $('#connect').get(0); @@ -126,6 +129,17 @@ event.preventDefault(); }); + $('#adhocMenu').click(function () { + $('#s2sList').slideUp(); + $('#adhoc').slideDown(); + event.preventDefault(); + }); + + $('#serverMenu').click(function () { + $('#adhoc').slideUp(); + $('#s2sList').slideDown(); + event.preventDefault(); + }); }); window.onunload = window.onbeforeunload = function() {