Commit f1704292 authored by David Stutz's avatar David Stutz

#329.

parent 536ca604
......@@ -894,7 +894,7 @@
var optionDOM = "";
var groupCounter = 0;
dataprovider.forEach(function (option) {
$.each(dataprovider, function (option) {
if ($.isArray(option.children)) {
groupCounter++;
optionDOM += '<optgroup label="' + (option.title || 'Group ' + groupCounter) + '">';
......@@ -904,7 +904,8 @@
});
optionDOM += '</optgroup>';
} else {
}
else {
optionDOM += '<option value="' + option.value + '">' + (option.label || option.value) + '</option>';
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment