// set the popup according to the html attribute
popupEnabledAttr = inputElement.jqmData('popup');
if ( popupEnabledAttr !== undefined ) {
- self.options.popup = ( popupEnabledAttr === 'true' );
+ self.options.popup = ( popupEnabledAttr == true );
}
// get the actual slider added by jqm
case 'text':
slider.before( $('<div class="ui-slider-left-text">' +
'<span style="position:relative;top:0.4em;">' +
- inputElement.attr('data-text-left') +
+ inputElement.attr('data-text-left').substring( 0, 3) +
'</span></div>') );
slider.after( $('<div class="ui-slider-right-text">' +
'<span style="position:relative;top:0.4em;">' +
- inputElement.attr('data-text-right') +
+ inputElement.attr('data-text-right').substring( 0, 3) +
'</span></div>') );
break;
}