Browse Source
[ADD] run onclose handler if we got one
pull/385/head
Holger Brunn
8 years ago
No known key found for this signature in database
GPG Key ID: 1C9760FECA3AE18
1 changed files with
8 additions and
0 deletions
-
web_ir_actions_act_window_page/static/src/js/web_ir_actions_act_window_page.js
|
@ -30,6 +30,10 @@ openerp.web_ir_actions_act_window_page = function(instance) |
|
|
this.inner_widget.views[this.inner_widget.active_view] |
|
|
this.inner_widget.views[this.inner_widget.active_view] |
|
|
.controller.execute_pager_action('previous'); |
|
|
.controller.execute_pager_action('previous'); |
|
|
} |
|
|
} |
|
|
|
|
|
if(options && options.on_close) |
|
|
|
|
|
{ |
|
|
|
|
|
options.on_close(); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
ir_actions_act_window_page_next: function(action, options) |
|
|
ir_actions_act_window_page_next: function(action, options) |
|
|
{ |
|
|
{ |
|
@ -39,6 +43,10 @@ openerp.web_ir_actions_act_window_page = function(instance) |
|
|
this.inner_widget.views[this.inner_widget.active_view] |
|
|
this.inner_widget.views[this.inner_widget.active_view] |
|
|
.controller.execute_pager_action('next'); |
|
|
.controller.execute_pager_action('next'); |
|
|
} |
|
|
} |
|
|
|
|
|
if(options && options.on_close) |
|
|
|
|
|
{ |
|
|
|
|
|
options.on_close(); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |