Fix toolbar dropdown actions set label

This commit is contained in:
Hadi Nategh 2015-01-09 14:45:39 +00:00
parent f384ac50a7
commit e1b9b43f6c

View File

@ -253,6 +253,7 @@ var et2_toolbar = et2_DOMWidget.extend([et2_IInput],
dropdown.onchange = jQuery.proxy(function(selected, dropdown)
{
var action = that._actionManager.getActionById(selected.attr('data-id'));
dropdown.set_label(action.caption);
if(action)
{
this.value = action.id;