mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
simplification
This commit is contained in:
parent
b0447e2544
commit
3004334d05
@ -96,9 +96,7 @@ class SpaCyNLPPipelineModelList extends RessourceList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onClick(event) {
|
onClick(event) {
|
||||||
if (event.target.closest('.action-switch')) {
|
if (event.target.closest('.action-switch')) {return;}
|
||||||
return;
|
|
||||||
}
|
|
||||||
let actionButtonElement = event.target.closest('.action-button');
|
let actionButtonElement = event.target.closest('.action-button');
|
||||||
let action = actionButtonElement === null ? 'view' : actionButtonElement.dataset.action;
|
let action = actionButtonElement === null ? 'view' : actionButtonElement.dataset.action;
|
||||||
let spaCyNLPPipelineModelElement = event.target.closest('tr');
|
let spaCyNLPPipelineModelElement = event.target.closest('tr');
|
||||||
|
@ -96,9 +96,7 @@ class TesseractOCRPipelineModelList extends RessourceList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onClick(event) {
|
onClick(event) {
|
||||||
if (event.target.closest('.action-switch')) {
|
if (event.target.closest('.action-switch')) {return;}
|
||||||
return;
|
|
||||||
}
|
|
||||||
let actionButtonElement = event.target.closest('.action-button');
|
let actionButtonElement = event.target.closest('.action-button');
|
||||||
let action = actionButtonElement === null ? 'view' : actionButtonElement.dataset.action;
|
let action = actionButtonElement === null ? 'view' : actionButtonElement.dataset.action;
|
||||||
let tesseractOCRPipelineModelElement = event.target.closest('tr');
|
let tesseractOCRPipelineModelElement = event.target.closest('tr');
|
||||||
|
Loading…
Reference in New Issue
Block a user