Adding jQuery UI to a project

manfer - August 7, 2009 - 17:26
Project:jQuery UI
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I would like to improve my module configuration form. It needs input of colors and ints with min and max values. The Form Api is not enough to deal with this. It is awful to have to input colors with three textfields (R, G, B) or int values with a textfield (with validation to alow only correct values).

For colors I just been able to change my horrible three R, G and B textfields with farbtastic color picker included in core and only a textfield attached to it.

For int I would like an input slider. My idea was to try to achive it with jQuery UI Slider. But though jQuery is part of drupal core jQuery UI is not. The licenses look the same, MIT and GPL, the best that suits your project. I saw there is a module to include jQuery UI but it does not include jQuery UI in it, it have to be downloaded and installed in a subfolder.

I woud like my module not depend on any other if posible so I don't like the idea of making it depend on jQuery UI module and besides when it is not as easy to install than others (though simple it would be more disturbing for new drupal users).

So my question is, is there any problem to include the jQuery UI core and components I could need in my project and provide them with my package?, I mean, upload them to CVS. Or the only way to include that project is with instructions to install it in a subfolder.

If you have any other suggestions for an input slider would be welcome too.

Thanks.

#1

mfer - August 7, 2009 - 17:40
Status:active» fixed

Check out the jQuery UI module. It provides an interface to jQuery UI that you can use.

It would be better to tie in with this module so we can avoid duplication on drupal.org.

#2

kiamlaluno - August 7, 2009 - 17:43
Project:Drupal.org webmasters» jQuery UI
Version:<none>» 6.x-1.x-dev
Component:Other» Code
Status:fixed» active

I am moving the support request to the right issue queue. Drupal.org webmasters queue is not the right one, when asking questions about how to program.

#3

kiamlaluno - August 7, 2009 - 17:45

Actually, the question would suit better a forum post.

#4

Gerhard Killesreiter - August 7, 2009 - 17:51
Status:active» fixed

Yes, it is not a good idea to include jquery UI for every project that requires it. This is /why/ we have a system of dependencies.

#5

manfer - August 7, 2009 - 18:06

Ok.

I posted in drupal webmasters because was a question about license issues not related to any specific project. I just knew the project and mentioned it on my post.

Thanks for answers. Clarified.

#6

System Message - August 21, 2009 - 18:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.