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

This commit is contained in:
Hadi Nategh 2014-07-11 12:57:47 +00:00
parent 1ceaef9b0b
commit 9ae80ec4c1

View File

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