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 10:38:36 +00:00
parent 49789bcf09
commit a0bf45da93

View File

@ -266,7 +266,7 @@ var et2_toolbar = et2_DOMWidget.extend([et2_IInput],
// ************** Drag and Drop feature for toolbar ***** // ************** Drag and Drop feature for toolbar *****
this.actionlist.find('span').sort( function (lg,g){ 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); }).appendTo(this.actionlist);
this.actionlist.appendTo(this.div); this.actionlist.appendTo(this.div);