vendor/assets/javascripts/webshims/shims/forms-picker.js in webshims-rails-1.10.11 vs vendor/assets/javascripts/webshims/shims/forms-picker.js in webshims-rails-1.11.1

- old
+ new

@@ -884,10 +884,13 @@ $.each(o.options[0], function(val, label){ var disabled = picker.isInRange(val.split('-'), o.maxS, o.minS) ? '' : ' disabled="" ' ; - options.push('<li role="presentation"><button value="'+ val +'" '+disabled+' data-action="changeInput" tabindex="-1" role="option">'+ (label || data.formatValue(val, false)) +'</button></li>'); + if(label){ + label = ' <span class="ws-label">'+ label +'</span>'; + } + options.push('<li role="presentation"><button value="'+ val +'" '+disabled+' data-action="changeInput" tabindex="-1" role="option"><span class="ws-value">'+ data.formatValue(val, false) +'</span>'+ label +'</button></li>'); }); if(options.length){ id++; if(o.options[1]){ labelId = 'datalist-'+id;