Skip to content
Snippets Groups Projects
Commit 8e8c98bf authored by Aaron Bohy's avatar Aaron Bohy Committed by Géry Debongnie
Browse files

[ADD] web: handle custom_events perform(_model)_rpc

If those events are catched by the web_client, it means that no other widget
did handle them, so simply call their on_fail callback.
parent df724840
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,16 @@ var WebClient = Widget.extend({
current_action_updated: function (e) {
this.current_action_updated(e.data.action);
},
perform_rpc: function(event) {
if (event.data.on_fail) {
event.data.on_fail();
}
},
perform_model_rpc: function(event) {
if (event.data.on_fail) {
event.data.on_fail();
}
},
},
init: function(parent) {
this.client_options = {};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment