Posted by iantresman on May 29, 2009 at 4:48pm
Jump to:
| Project: | jQuery Eye Candy |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Couldn't jQuery Eye Candy be made to extend any jQuery plug-in? If I know the name of the minified plug-in, I just need to specify its name for jQuery Eye Candy to do the rest (ie, check it is present)?
Comments
#1
What is there were a "General" section of the admin page? Basically provide an enable checkbox and two textarea's (one for jquery_plugin_add's, and the second one for the actual jquery code that needs to be perform).
So jq_eyecandy_general_plugin_add_code would require each plug-in to be either comma separated, or on new lines, then use explode to put then in an array, foreach the array and jquery_plugin_add($array_value).
Then jq_eyecandy_general_code would simply be a a drupal_add_js().
This way, if someone has a special plugin they want to add, or just general jquery they want to run, they could do it without having to create a module or embed it in a template.
#2
Yes, it would make sense to be able to specify the name of a new module, without it being hard-wired into the code. This should be fairly straightforward.
Even better would be an option to scan the jQuery modules code, and discover which modules have been uploaded, and then present options to enable/disable them. This is described in more details here.