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

This commit is contained in:
Ralf Becker 2014-11-28 14:46:05 +00:00
parent dc2e654d1a
commit 75f992fa22

View File

@ -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')
{