Skip to content

Commit

Permalink
#329.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidstutz committed Jul 4, 2014
1 parent 536ca60 commit f170429
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/bootstrap-multiselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) + '">';
Expand All @@ -904,7 +904,8 @@
});

optionDOM += '</optgroup>';
} else {
}
else {
optionDOM += '<option value="' + option.value + '">' + (option.label || option.value) + '</option>';
}
});
Expand Down

0 comments on commit f170429

Please sign in to comment.