Fix window buttons (for plugins)

This commit is contained in:
Julia Radzhabova
2023-09-29 16:34:29 +03:00
parent 54293818b9
commit d5941270af

View File

@ -631,7 +631,7 @@ define([
if (typeof(b) == 'object') {
if (b.value !== undefined)
newBtns[b.value] = {text: b.caption, cls: 'custom' + ((b.primary || options.primary==b.value) ? ' primary' : '')};
} else {
} else if (b!==undefined) {
newBtns[b] = {text: (b=='custom') ? options.customButtonText : arrBtns[b], cls: (options.primary==b || _.indexOf(options.primary, b)>-1) ? 'primary' : ''};
if (b=='custom')
newBtns[b].cls += ' custom';