Browse Source

[IMP] Terminology

pull/4/head
Stefan Rijnhart 11 years ago
parent
commit
029b87261b
  1. 0
      web_ir_actions_act_window_page/__init__.py
  2. 12
      web_ir_actions_act_window_page/__openerp__.py
  3. 0
      web_ir_actions_act_window_page/static/src/img/icon.png
  4. 6
      web_ir_actions_act_window_page/static/src/js/web_ir_actions_act_window_page.js

0
web_ir_actions_act_window_scroll/__init__.py → web_ir_actions_act_window_page/__init__.py

12
web_ir_actions_act_window_scroll/__openerp__.py → web_ir_actions_act_window_page/__openerp__.py

@ -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": [
], ],

0
web_ir_actions_act_window_scroll/static/src/img/icon.png → web_ir_actions_act_window_page/static/src/img/icon.png

Before

Width: 80  |  Height: 80  |  Size: 7.8 KiB

After

Width: 80  |  Height: 80  |  Size: 7.8 KiB

6
web_ir_actions_act_window_scroll/static/src/js/web_ir_actions_act_window_scroll.js → web_ir_actions_act_window_page/static/src/js/web_ir_actions_act_window_page.js

@ -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])
Loading…
Cancel
Save