passing new checkbox state to underlying menu implementation after action execution

This commit is contained in:
Andreas Stöckel 2011-04-17 17:55:37 +00:00
parent 7a291d01e8
commit 8e9279c7b7
2 changed files with 12 additions and 3 deletions

View File

@ -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

View File

@ -350,7 +350,7 @@
"checked": false, "checked": false,
"caption": "Test2", "caption": "Test2",
"onExecute": function(_action) { "onExecute": function(_action) {
return false; _action.checked = true;
} }
} }
] ]