view mod_jsxc/templates/template.js @ 4901:3abbcb8584d2

mod_portcheck: Don't rewrite '*' to '0.0.0.0' since Prosody doesn't They mean the same, but it's LuaSocket that deals with that, not Prosody
author Kim Alvefur <zash@zash.se>
date Tue, 22 Feb 2022 14: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);
});