Mercurial > prosody-modules
view mod_jsxc/templates/template.js @ 5116:85882735fd33
mod_http_muc_log: make default presence visibility configurable
This helps with reducing noise in some public places, such as the
XSF MUC logs. As requested by emus.
author | Jonas Schäfer <jonas@wielicki.name> |
---|---|
date | Sat, 17 Dec 2022 13:27:56 +0100 |
parents | 4bdfd83e091f |
children |
line wrap: on
line source
$(function() { let jsxc = new JSXC({ loadConnectionOptions: function(username, password) { return Promise.resolve(%s); } }); let formElement = $('#jsxc_login_form'); let usernameElement = $('#jsxc_username'); let passwordElement = $('#jsxc_password'); jsxc.watchForm(formElement, usernameElement, passwordElement); });