view mod_jsxc/templates/template.js @ 4968:487f1eb829cf

mod_cloud_notify: Compat for prosody 0.12
author tmolitor <thilo@eightysoft.de>
date Sat, 02 Jul 2022 02:29:03 +0200
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);
});