Bug Tracker

Modify

Ticket #3317 (closed enhancement: invalid)

Opened 5 years ago

Last modified 5 years ago

slider: support floating values, set number of decimals

Reported by: herve Owned by:
Priority: minor Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: Cc:
Blocking: Blocked by:

Description

For the needs of a math project, I had to modify slider to support floating values. It was rounding everything but I needed a two-decimal precision.

So I modified the source code and now I contribute it.

Basically, I added the functions "round" and "parse", and used them instead of "Math.round" and "parseInt".

I tried to stick with the coding style. The attached patch is in git format. I'm not confident with the format you expect for subversion. Just tell me so.

This is a ticket for the slider widget, but I didn't find it in the component list.

Attachments

0001-slider-support-floating-values-set-number-of-decim.patch Download (8.9 KB) - added by herve 5 years ago.
The patch in git format

Change History

Changed 5 years ago by herve

The patch in git format

comment:1 Changed 5 years ago by flesler

  • Status changed from new to closed
  • Resolution set to invalid

Please repost this to the  UI Bug Tracker.

comment:2 Changed 5 years ago by herve

Done. Thanks for your help.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.