Hello, I know is not very usual in rating systems in Internet but would it be possible to include a slider as input? Sliders (or at least marking something in a linear scale) are used a lot in quality management and value analisys, it would be great if the new version could include the jQuery UI slider as input (it's already on the core code).

Thanks :)

Comments

mauritsl’s picture

It's already available in the D6 version. I've tried to port it to D7, but it doesn't work yet because it's not loading the jQuery libraries correctly. I will take a look at this problem in the weeks to come.

daniorama’s picture

Great! Have I already said that this module is awesome? :D

Maybe it has to do with the way of calling it. API in Drupal 7 says to just use add_library but I needed to include also add_js to make it work in themes and nodes.

mauritsl’s picture

StatusFileSize
new2.44 KB

Haven't got the time to look at it yet. But the ported slider module is in the attachment.

rfsbsb’s picture

StatusFileSize
new172.24 KB

Hi, here is a patch I created based on mauritsl's code above. This is tested with 7.x-1.x branch.
Please note it was tested only with default configuration.

This patch was generated with git format-patch so it must be applied with git am

rfsbsb’s picture

StatusFileSize
new8.5 KB

Please do not consider the other patch. It was wrong. This one is the correct. Sorry.

mauritsl’s picture

Cool, thanks!

Will take a look at it next week.

mauritsl’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
Status: Active » Fixed

Slider module has been committed, thanks!

Module will be available in the 1.4 release.

I've removed the dependency on the jquery_ui module since jquery UI is in D7 core (and there is no release anymore for 7.x jquery_ui module).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.