Mercurial > prosody-modules
comparison mod_admin_web/admin_web/www_files/js/main.js @ 1023:83f56d3a07f5
mod_admin_web: Update to JQuery 1.10.0
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Mon, 27 May 2013 16:55:04 +0200 |
parents | 9839198539c8 |
children | d643c385d3f6 |
comparison
equal
deleted
inserted
replaced
1022:f15c25fff9cc | 1023:83f56d3a07f5 |
---|---|
174 | 174 |
175 $("#log_toggle").click(function () { | 175 $("#log_toggle").click(function () { |
176 $("#log").toggle(); | 176 $("#log").toggle(); |
177 }); | 177 }); |
178 | 178 |
179 $('#cred').bind('submit', function (event) { | 179 $('#cred').on('submit', function (event) { |
180 var button = $('#connect').get(0); | 180 var button = $('#connect').get(0); |
181 var jid = $('#jid'); | 181 var jid = $('#jid'); |
182 var pass = $('#pass'); | 182 var pass = $('#pass'); |
183 localJID = jid.get(0).value; | 183 localJID = jid.get(0).value; |
184 | 184 |
197 var tab = $(this).attr('href'); | 197 var tab = $(this).attr('href'); |
198 $('#main > div').hide(); | 198 $('#main > div').hide(); |
199 $(tab).fadeIn('fast'); | 199 $(tab).fadeIn('fast'); |
200 }); | 200 }); |
201 | 201 |
202 $('#host').bind('change', function (event) { | 202 $('#host').on('change', function (event) { |
203 connection.send($iq({to: adminsubHost, type: 'set', id: connection.getUniqueId()}).c('adminsub', {xmlns: Strophe.NS.ADMINSUB}) | 203 connection.send($iq({to: adminsubHost, type: 'set', id: connection.getUniqueId()}).c('adminsub', {xmlns: Strophe.NS.ADMINSUB}) |
204 .c('unsubscribe', {node: Strophe.NS.C2SSTREAM})); | 204 .c('unsubscribe', {node: Strophe.NS.C2SSTREAM})); |
205 connection.send($iq({to: adminsubHost, type: 'set', id: connection.getUniqueId()}).c('adminsub', {xmlns: Strophe.NS.ADMINSUB}) | 205 connection.send($iq({to: adminsubHost, type: 'set', id: connection.getUniqueId()}).c('adminsub', {xmlns: Strophe.NS.ADMINSUB}) |
206 .c('unsubscribe', {node: Strophe.NS.S2SSTREAM})); | 206 .c('unsubscribe', {node: Strophe.NS.S2SSTREAM})); |
207 adminsubHost = $(this).val(); | 207 adminsubHost = $(this).val(); |