mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 20:51:23 +01:00
Try to get attribute with getAttribute method, IE does not support element dataset
This commit is contained in:
parent
89d95e367f
commit
b95f53f073
@ -583,7 +583,7 @@ var et2_customfields_list = et2_valueWidget.extend([et2_IDetachedDOM, et2_IInput
|
|||||||
for(var i = 0; i < _nodes.length; i++)
|
for(var i = 0; i < _nodes.length; i++)
|
||||||
{
|
{
|
||||||
// toggle() needs a boolean to do what we want
|
// toggle() needs a boolean to do what we want
|
||||||
var key = _nodes[i].dataset.field;
|
var key = _nodes[i].getAttribute('data-field');
|
||||||
$j(_nodes[i]).toggle(_values.fields[key] && _values.value[this.prefix + key]?true:false);
|
$j(_nodes[i]).toggle(_values.fields[key] && _values.value[this.prefix + key]?true:false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user