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) {
|
item.set_onClick(function(elem) {
|
||||||
// Copy the "checked" state
|
// Copy the "checked" state
|
||||||
elem.data.checked = elem.checked;
|
if (typeof elem.data.checked != "undefined")
|
||||||
return elem.data.execute(_selected, _target);
|
{
|
||||||
|
elem.data.checked = elem.checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
elem.data.execute(_selected, _target);
|
||||||
|
|
||||||
|
if (typeof elem.data.checkbox != "undefined" && elem.data.checkbox)
|
||||||
|
{
|
||||||
|
return elem.data.checked;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -350,7 +350,7 @@
|
|||||||
"checked": false,
|
"checked": false,
|
||||||
"caption": "Test2",
|
"caption": "Test2",
|
||||||
"onExecute": function(_action) {
|
"onExecute": function(_action) {
|
||||||
return false;
|
_action.checked = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user