From 3e56f38995c6695c083f423f631e10259e2c4155 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 11 Jul 2014 15:52:43 +0000 Subject: [PATCH] Try to get attribute with getAttribute method, IE does not support element dataset --- etemplate/js/et2_extension_customfields.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_extension_customfields.js b/etemplate/js/et2_extension_customfields.js index 84638af2b2..bf05e29cc1 100644 --- a/etemplate/js/et2_extension_customfields.js +++ b/etemplate/js/et2_extension_customfields.js @@ -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); } }