mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Implement preAction handler for list view/detail view actions. If the
function returns false, then do not proceed further on the action. It
is specified like this:
actions: {
...
preAction: function(args) {
cloudStack.dialog.notice({ message: "You can't do that!" });
return false;
},
action: function(args) { ... },
...
}
It currently passes in the standard args.context that you would get
with a standard action; note that this currently does not support
async server calls, so try to use current state data as much as
possible.