# HG changeset patch # User Florian Zeitz # Date 1326898298 -3600 # Node ID 950e23318bbccb96ece512c4f873aa4b834803de # Parent c9955858dc7e4fb598dec091a0fe744e6e871bee mod_admin_web: Replace command list instead of appending diff -r c9955858dc7e -r 950e23318bbc 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('

This host does not support commands

'); }); $('#s2sin').empty(); $('#s2sout').empty();