File

mod_jsxc/templates/template.js @ 6194:3e7fe14921d0

mod_vcard_muc: Add conflict with Prosody versions that have native MUC vcards
author Matthew Wild <mwild1@gmail.com>
date Thu, 06 Feb 2025 17:07:00 +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);
});