mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Fix toolbar toggle buttons with Function are not getting executed
This commit is contained in:
parent
b816de9dbf
commit
04730c83fe
@ -440,13 +440,13 @@ var et2_toolbar = et2_DOMWidget.extend([et2_IInput],
|
||||
var click = function(e)
|
||||
{
|
||||
var action = this._actionManager.getActionById(e.data);
|
||||
if (action && action.checkbox)
|
||||
{
|
||||
action.set_checked(!action.checked);
|
||||
jQuery(button).toggleClass('toolbar_toggled');
|
||||
}
|
||||
else if(action)
|
||||
if(action)
|
||||
{
|
||||
if (action.checkbox)
|
||||
{
|
||||
action.set_checked(!action.checked);
|
||||
jQuery(button).toggleClass('toolbar_toggled');
|
||||
}
|
||||
this.value = action.id;
|
||||
action.data.event = e;
|
||||
action.execute([]);
|
||||
|
Loading…
Reference in New Issue
Block a user