adapt form::name() legacy pseudo function to new template-prefix

This commit is contained in:
Ralf Becker 2013-08-20 14:23:00 +00:00
parent 73aa652c41
commit d9ee56bd79

View File

@ -43,7 +43,7 @@
{
// et2_form_name doesn't care about ][, just [
var _cname = widget.getPath() ? widget.getPath().join("[") : false;
_val = _val.replace(/form::name\(/g,_cname ? "et2_form_name('"+_cname+"'," : '(');
_val = _val.replace(/form::name\(/g, "'"+widget.getRoot()._inst.uniqueId+"_'+"+(_cname ? "et2_form_name('"+_cname+"'," : '('));
}
if (_val.indexOf('egw::lang(') != -1)