Skip to content

translate function should add html and not text to label #251

Closed
@MaaikeB

Description

@MaaikeB

I have a slider with the original value and and below it to the original value I want to show a value that is based on the original value.
So for example: USD 63,000 - EUR 56,000

screen shot 2016-02-04 at 4 45 40 pm

Whenever the user changes the slider value, I want to return the two values from the translate function, the second value wrapped in a div with a class so I can position it below the original value.

Yet, since the translate function only adds text and not html to the label, it will display it all as a string, including the

.

solution

at line 617 of rzslider.js, change
label.text(valStr);
to
label.html(valStr);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions