view mod_jsxc/templates/template.js @ 4867:9d29467f4d5b

mod_http_xep227: Fix luacheck warnings
author Matthew Wild <mwild1@gmail.com>
date Sat, 15 Jan 2022 13:46:34 +0000
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);
});