Software /
code /
prosody-modules
Diff
mod_admin_web/admin_web/www_files/js/main.js @ 574:950e23318bbc
mod_admin_web: Replace command list instead of appending
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Wed, 18 Jan 2012 15:51:38 +0100 |
parent | 573:c9955858dc7e |
child | 584:1c2fc3b845f2 |
line wrap: on
line diff
--- a/mod_admin_web/admin_web/www_files/js/main.js Wed Jan 18 01:24:41 2012 +0100 +++ b/mod_admin_web/admin_web/www_files/js/main.js Wed Jan 18 15:51:38 2012 +0100 @@ -202,7 +202,7 @@ .c('unsubscribe', {node: Strophe.NS.S2SSTREAM})); adminsubHost = $(this).val(); adhocControl.checkFeatures(adminsubHost, - function () { adhocControl.getCommandNodes(function (result) { $('#adhocDisplay').empty(); $('#adhocCommands').append(result); }) }, + function () { adhocControl.getCommandNodes(function (result) { $('#adhocDisplay').empty(); $('#adhocCommands').html(result); }) }, function () { $('#adhocCommands').empty(); $('#adhocDisplay').html('<p>This host does not support commands</p>'); }); $('#s2sin').empty(); $('#s2sout').empty();