From 75f992fa222bf4f16cdf2c28dcefa91578d3b8bb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 28 Nov 2014 14:46:05 +0000 Subject: [PATCH] fixed not working view_range (max. number of buttons to show incl. label) --- etemplate/js/et2_widget_toolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_toolbar.js b/etemplate/js/et2_widget_toolbar.js index 3a3c738b9b..bb1d7a2025 100644 --- a/etemplate/js/et2_widget_toolbar.js +++ b/etemplate/js/et2_widget_toolbar.js @@ -388,7 +388,7 @@ var et2_toolbar = et2_DOMWidget.extend([et2_IInput], } if (action.caption) { - if ((this.countActions <= parseInt(this.view_range) || + if ((this.countActions <= parseInt(this.options.view_range) || this.preference[action.id]) && typeof button[0] !== 'undefined') {