Browse Source

Fixes #1383 issue when using select with values that include capital letters

pull/1407/head
jlukic 10 years ago
parent
commit
7d13c3ebef
1 changed files with 2 additions and 12 deletions
  1. 14
      src/definitions/modules/dropdown.js

14
src/definitions/modules/dropdown.js

@ -1448,12 +1448,7 @@ $.fn.dropdown.settings.templates = {
html = ''
;
$.each(select.values, function(value, name) {
if(value === name) {
html += '<div class="item">' + name + '</div>';
}
else {
html += '<div class="item" data-value="' + value + '">' + name + '</div>';
}
html += '<div class="item" data-value="' + value + '">' + name + '</div>';
});
return html;
},
@ -1472,12 +1467,7 @@ $.fn.dropdown.settings.templates = {
}
html += '<div class="menu">';
$.each(select.values, function(value, name) {
if(value === name) {
html += '<div class="item">' + name + '</div>';
}
else {
html += '<div class="item" data-value="' + value + '">' + name + '</div>';
}
html += '<div class="item" data-value="' + value + '">' + name + '</div>';
});
html += '</div>';
return html;

Loading…
Cancel
Save