Mercurial > prosody-modules
view mod_jsxc/templates/template.js @ 5848:593312fedfe1
mod_muc_moderation: Fix example
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 29 Feb 2024 18:00:01 +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); });