Refactoring

This commit is contained in:
OVSharova 2021-10-22 14:19:53 +03:00
parent c1e5327d47
commit 1a7d36f4d2

View file

@ -393,12 +393,11 @@ define([
}
var selectedElement;
_.each(this.btnParameters.menu.items, function (element, index) {
if (((index < minMax[0])||(index > minMax[1])))
element.$el.css('display', 'none');
else {
element.$el.css('display', '');
_.each(this.btnParameters.menu.items, function (element, index) {
element.setVisible(((index >= minMax[0])&&(index <= minMax[1])));
if ((index >= minMax[0])&&(index <= minMax[1])) {
if (value != undefined) {
if (value == element.value) selectedElement = element;
}