Changeset

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
parents 573:c9955858dc7e
children 575:565d5409c6ca
files mod_admin_web/admin_web/www_files/js/main.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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();