mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 10:09:10 +01:00
Check to see if the substitution actually got something, or we could wreck the nextmatch rows.
This commit is contained in:
parent
230472d256
commit
2087aed7a3
@ -249,11 +249,17 @@ var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM, et2_IAligned],
|
|||||||
if(value.indexOf('@') > 0 || value.indexOf('$') > 0)
|
if(value.indexOf('@') > 0 || value.indexOf('$') > 0)
|
||||||
{
|
{
|
||||||
// Ok, we found something. How many?
|
// Ok, we found something. How many?
|
||||||
while(typeof content.expandName(value) !== 'undefined')
|
do {
|
||||||
{
|
var ident = content.expandName(value);
|
||||||
rowData[rowIndex] = jQuery.extend({}, rowDataEntry);
|
var regex = new RegExp("\\[" + content.perspectiveData.row + "\\]");
|
||||||
content.perspectiveData.row = ++rowIndex;
|
|
||||||
}
|
if(ident.match(regex))
|
||||||
|
{
|
||||||
|
rowData[rowIndex] = jQuery.extend({}, rowDataEntry);
|
||||||
|
content.perspectiveData.row = ++rowIndex;
|
||||||
|
regex = new RegExp("\\[" + content.perspectiveData.row + "\\]");
|
||||||
|
}
|
||||||
|
} while(ident.match(regex))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user