Try to get attribute with getAttribute method, IE does not support element dataset

This commit is contained in:
Hadi Nategh 2014-07-11 15:52:43 +00:00
parent a0d6257d1e
commit 3e56f38995

View File

@ -583,7 +583,7 @@ var et2_customfields_list = et2_valueWidget.extend([et2_IDetachedDOM, et2_IInput
for(var i = 0; i < _nodes.length; i++)
{
// 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);
}
}