Export 0.1.45
[platform/framework/web/web-ui-fw.git] / src / widgets / slider / js / jquery.mobile.tizen.slider.js
index e4fc89f..c022a4d 100755 (executable)
                        // 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;
                        }