loopj / jquery-simple-slider

Unobtrusive numerical slider plugin for jQuery
194 stars 113 forks source link

Remove decimal place? #1

Closed stebesplace closed 12 years ago

stebesplace commented 12 years ago

Love the slider, but looking to remove the decimal place without hacking up the original JS.

An example is that I have the slider, enabling the output, but it shows as 100.000. Looking to just get a whole number, sans decimal.

stebesplace commented 12 years ago

Strike that, found the line in your data-slider event.

.html(data.value.toFixed(0)); from .html(data.value.toFixed(3));

sushaantu commented 11 years ago

I hate to ask this but I don't see any code like this: .html(data.value.toFixed(0)); in the simple-slider.js file.

Can you please mention which line?

loopj commented 11 years ago

There is no code like that, all number and output formatting done outside of the plugin to keep it as flexible as possible.

James Smith

On Friday, April 26, 2013 at 7:19 AM, sushimashi wrote:

I hate to ask this but I don't see any code like this: .html(data.value.toFixed(0)); in the simple-slider.js file. Can you please mention which line?

— Reply to this email directly or view it on GitHub (https://github.com/loopj/jquery-simple-slider/issues/1#issuecomment-17076975).

sushaantu commented 11 years ago

Thanks. That clears it up.