Overview
Comment:Fix focus after dialog close
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: ddd5af655de8c9f991dfe9dfe0f59335d648841e
User & Date: bohwaz on 2020-09-30 12:31:10
Other Links: branch diff | manifest | tags
Context
2020-10-01
11:12
Fix consistency and issues with multiples in input lists check-in: 48a25a7218 user: bohwaz tags: dev
2020-09-30
12:31
Fix focus after dialog close check-in: ddd5af655d user: bohwaz tags: dev
12:16
Replace datepicker with something lighter check-in: 2fec91572c user: bohwaz tags: dev
Changes

Modified src/templates/acc/transactions/new.tpl from [92c72d5670] to [bd299f0d26].

276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
		var btn = document.createElement('button');
		btn.className = 'icn-btn';
		btn.type = 'button';
		btn.setAttribute('data-icon', '✘');
		btn.onclick = () => span.parentNode.removeChild(span);
		span.appendChild(btn);
	}
	console.log(multiple, multiple ? 1 : 2, i);
	i.appendChild(span);
	g.closeDialog();
	i.focus();
}

initForm();
</script>
{/literal}

{include file="admin/_foot.tpl"}







<


|







276
277
278
279
280
281
282

283
284
285
286
287
288
289
290
291
292
		var btn = document.createElement('button');
		btn.className = 'icn-btn';
		btn.type = 'button';
		btn.setAttribute('data-icon', '✘');
		btn.onclick = () => span.parentNode.removeChild(span);
		span.appendChild(btn);
	}

	i.appendChild(span);
	g.closeDialog();
	i.firstChild.focus();
}

initForm();
</script>
{/literal}

{include file="admin/_foot.tpl"}