# HG changeset patch # User Florian Zeitz # Date 1293482081 -3600 # Node ID c152ab024d1afaa934d483f25095d999bb4d269b # Parent 4c3abf1a9b5a0ff4d9551877cc54135931f5ff0b mod_admin_web: Show whether connection is encrypted/compressed diff -r 4c3abf1a9b5a -r c152ab024d1a mod_admin_web/admin_web/www_files/images/compressed.png Binary file mod_admin_web/admin_web/www_files/images/compressed.png has changed diff -r 4c3abf1a9b5a -r c152ab024d1a mod_admin_web/admin_web/www_files/images/encrypted.png Binary file mod_admin_web/admin_web/www_files/images/encrypted.png has changed diff -r 4c3abf1a9b5a -r c152ab024d1a mod_admin_web/admin_web/www_files/js/main.js --- a/mod_admin_web/admin_web/www_files/js/main.js Mon Dec 27 20:15:21 2010 +0500 +++ b/mod_admin_web/admin_web/www_files/js/main.js Mon Dec 27 21:34:41 2010 +0100 @@ -25,15 +25,24 @@ } function _cbNewS2S(e) { - var items, retract, id, jid; + var items, entry, retract, id, jid; items = e.getElementsByTagName('item'); for (i = 0; i < items.length; i++) { id = items[i].attributes['id'].value; jid = items[i].getElementsByTagName('session')[0].attributes['jid'].value; + + entry = $('
  • ' + jid + '
  • '); + if (e.getElementsByTagName('encrypted')[0]) { + entry.append(' (encrypted)'); + } + if (e.getElementsByTagName('compressed')[0]) { + entry.append(' (compressed)'); + } + if (items[i].getElementsByTagName('out')[0]) { - $('#s2sout').append('
  • ' + jid + '
  • '); + entry.appendTo('#s2sout'); } else { - $('#s2sin').append('
  • ' + jid + '
  • '); + entry.appendTo('#s2sin'); } } retract = e.getElementsByTagName('retract')[0]; @@ -45,12 +54,19 @@ } function _cbNewC2S(e) { - var items, retract, id, jid; + var items, entry, retract, id, jid; items = e.getElementsByTagName('item'); for (i = 0; i < items.length; i++) { id = items[i].attributes['id'].value; jid = items[i].getElementsByTagName('session')[0].attributes['jid'].value; - $('#c2s').append('
  • ' + jid + '
  • '); + entry = $('
  • ' + jid + '
  • '); + if (e.getElementsByTagName('encrypted')[0]) { + entry.append(' (encrypted)'); + } + if (e.getElementsByTagName('compressed')[0]) { + entry.append(' (compressed)'); + } + entry.appendTo('#c2s'); } retract = e.getElementsByTagName('retract')[0]; if (retract) {