Mercurial > prosody-modules
diff mod_admin_web/admin_web/www_files/js/main.js @ 584:1c2fc3b845f2
mod_admin_web: Clear commands in all cases new ones are loaded (thanks Maranda)
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Thu, 26 Jan 2012 19:38:03 +0100 |
parents | 950e23318bbc |
children | 40ab83736f6e |
line wrap: on
line diff
--- 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('<p>This host does not support commands</p>'); }); connection.addHandler(_cbAdminSub, Strophe.NS.ADMINSUB + '#event', 'message'); connection.send($iq({to: adminsubHost, type: 'set', id: connection.getUniqueId()}).c('adminsub', {xmlns: Strophe.NS.ADMINSUB})