Set the button text with textContent instead of innerTEXT as some browsers may not support innerTEXT

This commit is contained in:
Hadi Nategh 2014-02-11 08:50:19 +00:00
parent fc34b90350
commit c9c89c4d66

View File

@ -294,7 +294,7 @@ var et2_toolbar = et2_DOMWidget.extend(
{ {
if (this.countActions <= this.view_range || this.preference[action.id] ) if (this.countActions <= this.view_range || this.preference[action.id] )
{ {
button.context.innerText = action.caption; button[0].textContent = action.caption;
} }
} }
if(action.icon) if(action.icon)