1
0
Fork 0
mirror of https://github.com/qurator-spk/neat.git synced 2025-06-11 20:59:54 +02:00

Make edit area of TOKEN resizeable again in order to make editing of

longer tokens more comfortable.
This commit is contained in:
Kai Labusch 2019-12-13 12:57:59 +01:00
parent 7ebf04b517
commit 655a1f232e

View file

@ -773,9 +773,16 @@ function setupInterface(data, file, urls) {
if (editingTd) {
if (target == editingTd.elem) return;
if (target == $(':focus')) return;
if ($.contains($(':focus')[0], target)) return;
if ($.contains(target, $(':focus')[0])) return;
let refocus = $(':focus');
editingTd.finish(true);
refocus.focus();
editingTd.finish(editingTd.elem, true);
}
if (!$.contains($('#table')[0], target)) return