fixed not working view_range (max. number of buttons to show incl. label)

This commit is contained in:
Ralf Becker 2014-11-28 14:45:45 +00:00
parent c52a892519
commit 010054bd97

View File

@ -388,7 +388,7 @@ var et2_toolbar = et2_DOMWidget.extend([et2_IInput],
} }
if (action.caption) if (action.caption)
{ {
if ((this.countActions <= parseInt(this.view_range) || if ((this.countActions <= parseInt(this.options.view_range) ||
this.preference[action.id]) && this.preference[action.id]) &&
typeof button[0] !== 'undefined') typeof button[0] !== 'undefined')
{ {