mod_admin_web: Replace command list instead of appending
authorFlorian Zeitz <florob@babelmonkeys.de>
Wed, 18 Jan 2012 15:51:38 +0100
changeset 574 950e23318bbc
parent 573 c9955858dc7e
child 575 565d5409c6ca
mod_admin_web: Replace command list instead of appending
mod_admin_web/admin_web/www_files/js/main.js
--- 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();