Fix Bug 42475

This commit is contained in:
Julia Radzhabova 2019-08-20 12:54:51 +03:00
parent 1d6a469960
commit dcab25cdd8
3 changed files with 21 additions and 24 deletions

View file

@ -2097,7 +2097,7 @@ define([
this.mnuColorSchema.addItem({ this.mnuColorSchema.addItem({
caption: '--' caption: '--'
}); });
} else { }
this.mnuColorSchema.addItem({ this.mnuColorSchema.addItem({
template: itemTemplate, template: itemTemplate,
cls: 'color-schemas-menu', cls: 'color-schemas-menu',
@ -2105,7 +2105,6 @@ define([
caption: (index < 21) ? (me.SchemeNames[index] || schema.get_name()) : schema.get_name(), caption: (index < 21) ? (me.SchemeNames[index] || schema.get_name()) : schema.get_name(),
value: index value: index
}); });
}
}, this); }, this);
}, },

View file

@ -1318,7 +1318,7 @@ define([
mnuColorSchema.addItem({ mnuColorSchema.addItem({
caption: '--' caption: '--'
}); });
} else { }
mnuColorSchema.addItem({ mnuColorSchema.addItem({
template: itemTemplate, template: itemTemplate,
cls: 'color-schemas-menu', cls: 'color-schemas-menu',
@ -1326,7 +1326,6 @@ define([
caption: (index < 21) ? (me.schemeNames[index] || schema.get_name()) : schema.get_name(), caption: (index < 21) ? (me.schemeNames[index] || schema.get_name()) : schema.get_name(),
value: index value: index
}); });
}
}, this); }, this);
} }
}, },

View file

@ -1951,7 +1951,7 @@ define([
this.mnuColorSchema.addItem({ this.mnuColorSchema.addItem({
caption : '--' caption : '--'
}); });
} else { }
this.mnuColorSchema.addItem({ this.mnuColorSchema.addItem({
template: itemTemplate, template: itemTemplate,
cls : 'color-schemas-menu', cls : 'color-schemas-menu',
@ -1959,7 +1959,6 @@ define([
caption : (index < 21) ? (me.SchemeNames[index] || schema.get_name()) : schema.get_name(), caption : (index < 21) ? (me.SchemeNames[index] || schema.get_name()) : schema.get_name(),
value : index value : index
}); });
}
}, this); }, this);
}, },