view mod_jsxc/templates/template.js @ 5949:97a9f939d472

mod_auth_oauth_external: Inherit default HTTP client settings (thanks nils)
author Kim Alvefur <zash@zash.se>
date Wed, 07 Aug 2024 17:59:14 +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);
});