mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
Fixed: Unclickable URLs after approving Anrechnung are clickable now
This commit is contained in:
@@ -191,9 +191,6 @@ $filterWidgetArray = array(
|
||||
rowSelectionChanged:function(data, rows){
|
||||
func_rowSelectionChanged(data, rows);
|
||||
},
|
||||
rowUpdated:function(row){
|
||||
func_rowUpdated(row);
|
||||
},
|
||||
tooltips: function(cell){
|
||||
return func_tooltips(cell);
|
||||
}
|
||||
|
||||
@@ -141,8 +141,17 @@ var format_ectsSumBisherUndNeu = function(cell, formatterParams, onRendered){
|
||||
function func_rowFormatter(row){
|
||||
let status_kurzbz = row.getData().status_kurzbz;
|
||||
|
||||
// If status is anything else then 'Bearbeitet von STGL-Leitung'
|
||||
if (status_kurzbz != ANRECHNUNGSTATUS_PROGRESSED_BY_STGL)
|
||||
{
|
||||
// Disable new selection of updated rows
|
||||
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";
|
||||
|
||||
// Color background grey
|
||||
row.getElement().style["background-color"] = COLOR_LIGHTGREY; // default
|
||||
}
|
||||
}
|
||||
@@ -177,24 +186,6 @@ function func_rowSelectionChanged(data, rows){
|
||||
approveAnrechnung.showNumberSelectedRows(rows);
|
||||
}
|
||||
|
||||
// Performes after row was updated
|
||||
function func_rowUpdated(row){
|
||||
var status_kurzbz = row.getData().status_kurzbz;
|
||||
if ((row.getCells().length > 0) &&
|
||||
(status_kurzbz == ANRECHNUNGSTATUS_APPROVED ||
|
||||
status_kurzbz == ANRECHNUNGSTATUS_REJECTED ||
|
||||
status_kurzbz == ANRECHNUNGSTATUS_PROGRESSED_BY_LEKTOR)
|
||||
)
|
||||
{
|
||||
// Deselect and disable new selection of updated rows
|
||||
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
|
||||
function func_tooltips(cell) {
|
||||
// Return tooltip if row is unselectable
|
||||
@@ -431,8 +422,11 @@ $(function(){
|
||||
|
||||
|
||||
// Update row
|
||||
row.update(updateData);
|
||||
row.update(updateData);
|
||||
|
||||
// Reformat row
|
||||
row.reformat();
|
||||
|
||||
})
|
||||
|
||||
// Deselect rows
|
||||
|
||||
Reference in New Issue
Block a user