diff mod_admin_web/admin_web/www_files/js/main.js @ 297:a70284e01453

mod_admin_web: Add support for calling adhoc commands
author Florian Zeitz <florob@babelmonkeys.de>
date Sun, 26 Dec 2010 02:20:25 +0100
parents 5a619d6045a8
children b241c79a0eb7
line wrap: on
line diff
--- a/mod_admin_web/admin_web/www_files/js/main.js	Fri Dec 24 02:00:50 2010 +0100
+++ b/mod_admin_web/admin_web/www_files/js/main.js	Sun Dec 26 02:20:25 2010 +0100
@@ -62,6 +62,7 @@
     } else if (status == Strophe.Status.CONNECTED) {
         log('Strophe is connected.');
         showDisconnect();
+	Adhoc.checkFeatures('#adhoc', connection.domain);
         connection.send($iq({to: pubsubHost, type: 'set', id: connection.getUniqueId()}).c('pubsub', {xmlns: Strophe.NS.PUBSUB})
                 .c('subscribe', {node: Strophe.NS.S2SPUBSUB, jid: connection.jid}));
         connection.addHandler(_cbNewS2S, Strophe.NS.PUBSUB + '#event', 'message');