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

This commit is contained in:
Hadi Nategh 2014-07-11 15:53:58 +00:00
parent 89d95e367f
commit b95f53f073

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);
}
}