From a0bf45da9320bc29bdd27f8f00853398866b7afa Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 11 Jul 2014 10:38:36 +0000 Subject: [PATCH] Use getAttribute to get the data-group value to use it for toolbar sorting.\n\r -Fix group is undefined error opening mail in IE10 --- etemplate/js/et2_widget_toolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_toolbar.js b/etemplate/js/et2_widget_toolbar.js index d4c782fc10..41ac30da68 100644 --- a/etemplate/js/et2_widget_toolbar.js +++ b/etemplate/js/et2_widget_toolbar.js @@ -266,7 +266,7 @@ var et2_toolbar = et2_DOMWidget.extend([et2_IInput], // ************** Drag and Drop feature for toolbar ***** this.actionlist.find('span').sort( function (lg,g){ - return +lg.dataset.group - +g.dataset.group; + return +lg.getAttribute('data-group') - +g.getAttribute('data-group'); }).appendTo(this.actionlist); this.actionlist.appendTo(this.div);