mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
Row values can get put in [id] or {}[id] - look in both
This commit is contained in:
parent
73d49a957a
commit
c19a3b6c5f
@ -137,12 +137,16 @@ var et2_selectbox = et2_inputWidget.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Maybe in a row, and options got stuck in ${row} instead of top level
|
// Maybe in a row, and options got stuck in ${row} instead of top level
|
||||||
if((!content_options || content_options.length == 0) && (
|
var row_stuck = ['${row}','{$row}'];
|
||||||
// perspectiveData.row in nm, data["${row}"] in an auto-repeat grid
|
for(var i = 0; i < row_stuck.length; i++)
|
||||||
this.getArrayMgr("sel_options").perspectiveData.row || this.getArrayMgr("sel_options").data["${row}"]))
|
|
||||||
{
|
{
|
||||||
var row_id = this.id.replace(/[0-9]+/,'${row}');
|
if((!content_options || content_options.length == 0) && (
|
||||||
content_options = this.getArrayMgr("sel_options").getEntry(row_id);
|
// perspectiveData.row in nm, data["${row}"] in an auto-repeat grid
|
||||||
|
this.getArrayMgr("sel_options").perspectiveData.row || this.getArrayMgr("sel_options").data[row_stuck[i]]))
|
||||||
|
{
|
||||||
|
var row_id = this.id.replace(/[0-9]+/,row_stuck[i]);
|
||||||
|
content_options = this.getArrayMgr("sel_options").getEntry(row_id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(_attrs["select_options"] && content_options)
|
if(_attrs["select_options"] && content_options)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user