3
0
Fork 0

[IMP] Terminology

7.0
unknown 2013-12-02 15:01:40 +01:00 committed by Holger Brunn
commit 0fdcae8b24
4 changed files with 9 additions and 9 deletions

View File

@ -19,23 +19,23 @@
# #
############################################################################## ##############################################################################
{ {
"name" : "Window actions for client side scrolling", "name" : "Window actions for client side paging",
"version" : "1.0", "version" : "1.0",
"author" : "Therp BV", "author" : "Therp BV",
"complexity": "normal", "complexity": "normal",
"description": """ "description": """
Client side scrolling Client side paging
===================== =====================
This addon enables buttons to return:: This addon enables buttons to return::
{'type': 'ir.actions.act_window.scroll.next'} {'type': 'ir.actions.act_window.page.next'}
or:: or::
{'type': 'ir.actions.act_window.scroll.prev'} {'type': 'ir.actions.act_window.page.prev'}
which trigger the form's controller to scroll into the requested direction. which trigger the form's controller to page into the requested direction.
""", """,
"category" : "Dependency", "category" : "Dependency",
"depends" : [ "depends" : [
@ -43,7 +43,7 @@ which trigger the form's controller to scroll into the requested direction.
"data" : [ "data" : [
], ],
"js": [ "js": [
'static/src/js/web_ir_actions_act_window_scroll.js', 'static/src/js/web_ir_actions_act_window_page.js',
], ],
"css": [ "css": [
], ],

View File

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

@ -19,10 +19,10 @@
// //
//############################################################################ //############################################################################
openerp.web_ir_actions_act_window_scroll = function(openerp) openerp.web_ir_actions_act_window_page = function(openerp)
{ {
openerp.web.ActionManager.include({ openerp.web.ActionManager.include({
ir_actions_act_window_scroll_prev: function(action, options) ir_actions_act_window_page_prev: function(action, options)
{ {
if(this.inner_widget && this.inner_widget.active_view == 'form' && if(this.inner_widget && this.inner_widget.active_view == 'form' &&
this.inner_widget.views[this.inner_widget.active_view]) this.inner_widget.views[this.inner_widget.active_view])
@ -31,7 +31,7 @@ openerp.web_ir_actions_act_window_scroll = function(openerp)
.controller.execute_pager_action('previous'); .controller.execute_pager_action('previous');
} }
}, },
ir_actions_act_window_scroll_next: function(action, options) ir_actions_act_window_page_next: function(action, options)
{ {
if(this.inner_widget && this.inner_widget.active_view == 'form' && if(this.inner_widget && this.inner_widget.active_view == 'form' &&
this.inner_widget.views[this.inner_widget.active_view]) this.inner_widget.views[this.inner_widget.active_view])