Software /
code /
prosody-modules
File
mod_jsxc/templates/template.js @ 6121:255ab0b81f14
mod_anti_spam: Fix traceback when no anti-spam services defined in config (thanks mirux)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 29 Dec 2024 11:49:36 +0000 |
parent | 4825:4bdfd83e091f |
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); });