summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/action_manager.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/addons/web/static/src/js/action_manager.js b/addons/web/static/src/js/action_manager.js
index 7e8b89dda68..974bfb982d7 100644
--- a/addons/web/static/src/js/action_manager.js
+++ b/addons/web/static/src/js/action_manager.js
@@ -175,13 +175,18 @@ var ViewManagerAction = WidgetAction.extend({
* @param {int} [scrollTop] the number of pixels to scroll
*/
set_scrollTop: function(scrollTop) {
- this.widget.active_view.controller.set_scrollTop(scrollTop);
+ if (this.widget.active_view && this.widget.active_view.controller) {
+ this.widget.active_view.controller.set_scrollTop(scrollTop);
+ }
},
/**
* @return {int} the number of pixels the webclient is scrolled when leaving the action
*/
get_scrollTop: function() {
- return this.widget.active_view.controller.get_scrollTop();
+ if (this.widget.active_view && this.widget.active_view.controller) {
+ return this.widget.active_view.controller.get_scrollTop();
+ }
+ return this._super.apply(this, arguments);
},
/**
* @return {Array} array of Objects that will be interpreted to display the breadcrumbs