Overview
Comment:Fix: reset project selector if project is NULL
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: d80f34d9f507d07876b699b10ac6f87b2ba3265793caec83fd0a51005c305b52
User & Date: bohwaz on 2023-05-22 13:50:28
Other Links: manifest | tags
Context
2023-05-22
14:08
Add result column in projects list check-in: d10eb0bcc9 user: bohwaz tags: trunk, stable
13:50
Fix: reset project selector if project is NULL check-in: d80f34d9f5 user: bohwaz tags: trunk, stable
13:46
Fix in case date is NULL check-in: 2b32f3458b user: bohwaz tags: trunk, stable
Changes

Modified src/www/admin/static/scripts/service_form.js from [d3a768cf39] to [272a6811a7].

46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
	}

	// Fill the amount paid by the user
	if (amount && create) {
		$('#f_amount').value = g.formatMoney(amount);
	}

	if (elm.dataset.project) {
		$('#f_id_project').value = elm.dataset.project;
	}
}

function initForm() {
	$('input[name=id_service]').forEach((e) => {
		e.onchange = () => { selectService(e); };







|







46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
	}

	// Fill the amount paid by the user
	if (amount && create) {
		$('#f_amount').value = g.formatMoney(amount);
	}

	if ('project' in elm.dataset) {
		$('#f_id_project').value = elm.dataset.project;
	}
}

function initForm() {
	$('input[name=id_service]').forEach((e) => {
		e.onchange = () => { selectService(e); };