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:
parent
7ebf04b517
commit
655a1f232e
1 changed files with 9 additions and 2 deletions
11
neath.js
11
neath.js
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue