view mod_jsxc/templates/template.js @ 5067:54c6b4595f86

mod_sasl2: Forward stream attributes into sub-event
author Matthew Wild <mwild1@gmail.com>
date Fri, 14 Oct 2022 15:43:22 +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);
});