vendor/assets/javascripts/webshims/shims/combos/11.js in webshims-rails-1.12.2 vs vendor/assets/javascripts/webshims/shims/combos/11.js in webshims-rails-1.12.3
- old
+ new
@@ -13,11 +13,11 @@
var createOpts = ['step', 'min', 'max', 'readonly', 'title', 'disabled', 'tabindex'];
var rangeProto = {
_create: function(){
var i;
- this.element.addClass('ws-range').attr({role: 'slider'}).append('<span class="ws-range-min ws-range-progress" /><span class="ws-range-rail ws-range-track"><span class="ws-range-thumb"><span data-value="" data-valuetext="" /></span></span>');
+ this.element.addClass('ws-range').attr({role: 'slider'}).append('<span class="ws-range-min ws-range-progress" /><span class="ws-range-rail ws-range-track"><span class="ws-range-thumb"><span><span data-value="" data-valuetext="" /></span></span></span>');
this.trail = $('.ws-range-track', this.element);
this.range = $('.ws-range-progress', this.element);
this.thumb = $('.ws-range-thumb', this.trail);
this.updateMetrics();
@@ -95,10 +95,10 @@
var textValue = o.textValue ? o.textValue(this.options.value) : o.options[o.value] || o.value;
this.element.attr({
'aria-valuenow': this.options.value,
'aria-valuetext': textValue
});
- $('span', this.thumb).attr({
+ $('span[data-value]', this.thumb).attr({
'data-value': this.options.value,
'data-valuetext': textValue
});
if(o.selectedOption){
$(o.selectedOption).removeClass('ws-selected-option');