Software /
code /
prosody-modules
Changeset
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 | 583:a634b116c694 |
children | 585:ce2798a1bc56 597:1004d7176be2 |
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 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})