mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-13 17:00:45 +01:00
Some more adjustments to get disabled attribute into nextmatch unparsed
This commit is contained in:
parent
772b97e22d
commit
a5d4400918
@ -108,9 +108,7 @@ var et2_grid = (function(){ "use strict"; return et2_DOMWidget.extend([et2_IDeta
|
|||||||
for (var x = 0; x < w; x++)
|
for (var x = 0; x < w; x++)
|
||||||
{
|
{
|
||||||
// Some columns (nm) we do not parse into a boolean
|
// Some columns (nm) we do not parse into a boolean
|
||||||
var col_disabled = typeof _colData[x].disabled == 'boolean' ?
|
var col_disabled = _colData[x].disabled;
|
||||||
_colData[x].disabled :
|
|
||||||
this.getArrayMgr("content").parseBoolExpression(_colData[x].disabled);
|
|
||||||
cells[y][x] = {
|
cells[y][x] = {
|
||||||
"td": null,
|
"td": null,
|
||||||
"widget": null,
|
"widget": null,
|
||||||
@ -466,7 +464,7 @@ var et2_grid = (function(){ "use strict"; return et2_DOMWidget.extend([et2_IDeta
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create the element
|
// Create the element
|
||||||
if(!cell.disabled)
|
if(!cell.disabled || cell.disabled && typeof cell.disabled === 'string')
|
||||||
{
|
{
|
||||||
//Skip if it is a nextmatch while the nextmatch handles row adjustment by itself
|
//Skip if it is a nextmatch while the nextmatch handles row adjustment by itself
|
||||||
if(!nm)
|
if(!nm)
|
||||||
@ -487,8 +485,14 @@ var et2_grid = (function(){ "use strict"; return et2_DOMWidget.extend([et2_IDeta
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(!nm && typeof cell.disabled === 'string')
|
||||||
var widget = this.createElementFromNode(node, nodeName);
|
{
|
||||||
|
cell.disabled = this.getArrayMgr("content").parseBoolExpression(cell.disabled);
|
||||||
|
}
|
||||||
|
if(nm || !cell.disabled)
|
||||||
|
{
|
||||||
|
var widget = this.createElementFromNode(node, nodeName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fill all cells the widget is spanning
|
// Fill all cells the widget is spanning
|
||||||
@ -712,7 +716,7 @@ var et2_grid = (function(){ "use strict"; return et2_DOMWidget.extend([et2_IDeta
|
|||||||
if (cell.disabled)
|
if (cell.disabled)
|
||||||
{
|
{
|
||||||
td.hide();
|
td.hide();
|
||||||
cell.widget.options = cell.disabled;
|
cell.widget.options.disabled = cell.disabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cell.width != "auto")
|
if (cell.width != "auto")
|
||||||
|
Loading…
Reference in New Issue
Block a user