Fixed: Now Nachweisdokument- and Detail-Links clickable after table update

Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
Cris
2021-02-09 14:36:29 +01:00
committed by cris-technikum
parent 3eecd74b1f
commit d1537df896
2 changed files with 10 additions and 0 deletions
@@ -21,6 +21,7 @@ function func_tableBuilt(table) {
table.addColumn(
{
title: "Details",
field: 'details',
align: "center",
width: 100,
formatter: "link",
@@ -66,6 +67,10 @@ function func_rowUpdated(row){
// Deselect and disable new selection of updated rows
row.deselect();
row.getElement().style["pointerEvents"] = "none";
// ...but leave url links selectable
row.getCell('dokument_bezeichnung').getElement().firstChild.style["pointerEvents"] = "auto";
row.getCell('details').getElement().firstChild.style["pointerEvents"] = "auto";
}
// Returns tooltip
@@ -21,6 +21,7 @@ function func_tableBuilt(table) {
table.addColumn(
{
title: "Details",
field: 'details',
align: "center",
width: 100,
formatter: "link",
@@ -64,6 +65,10 @@ function func_rowUpdated(row){
// Deselect and disable new selection of updated rows
row.deselect();
row.getElement().style["pointerEvents"] = "none";
// ...but leave url links selectable
row.getCell('dokument_bezeichnung').getElement().firstChild.style["pointerEvents"] = "auto";
row.getCell('details').getElement().firstChild.style["pointerEvents"] = "auto";
}
// Returns tooltip