# HG changeset patch # User Florian Zeitz # Date 1327603083 -3600 # Node ID 1c2fc3b845f266fae33f1bfb5358a781fb90a484 # Parent a634b116c694b13cb33e71e4915f1e77630ff93f mod_admin_web: Clear commands in all cases new ones are loaded (thanks Maranda) diff -r a634b116c694 -r 1c2fc3b845f2 mod_admin_web/admin_web/www_files/js/main.js --- a/mod_admin_web/admin_web/www_files/js/main.js Wed Jan 25 06:58:53 2012 +0500 +++ b/mod_admin_web/admin_web/www_files/js/main.js Thu Jan 26 19:38:03 2012 +0100 @@ -125,7 +125,7 @@ showDisconnect(); adminsubHost = $(items[0]).text(); 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

'); }); connection.addHandler(_cbAdminSub, Strophe.NS.ADMINSUB + '#event', 'message'); connection.send($iq({to: adminsubHost, type: 'set', id: connection.getUniqueId()}).c('adminsub', {xmlns: Strophe.NS.ADMINSUB})