Refactoring
This commit is contained in:
parent
c1e5327d47
commit
1a7d36f4d2
|
@ -393,12 +393,11 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
var selectedElement;
|
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 != undefined) {
|
||||||
if (value == element.value) selectedElement = element;
|
if (value == element.value) selectedElement = element;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue