forked from extern/egroupware
passing new checkbox state to underlying menu implementation after action execution
This commit is contained in:
parent
7a291d01e8
commit
8e9279c7b7
@ -323,8 +323,17 @@ function egwPopupActionImplementation()
|
||||
{
|
||||
item.set_onClick(function(elem) {
|
||||
// Copy the "checked" state
|
||||
elem.data.checked = elem.checked;
|
||||
return elem.data.execute(_selected, _target);
|
||||
if (typeof elem.data.checked != "undefined")
|
||||
{
|
||||
elem.data.checked = elem.checked;
|
||||
}
|
||||
|
||||
elem.data.execute(_selected, _target);
|
||||
|
||||
if (typeof elem.data.checkbox != "undefined" && elem.data.checkbox)
|
||||
{
|
||||
return elem.data.checked;
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
|
@ -350,7 +350,7 @@
|
||||
"checked": false,
|
||||
"caption": "Test2",
|
||||
"onExecute": function(_action) {
|
||||
return false;
|
||||
_action.checked = true;
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user