Any plans for a D7 port? awesome module for 6... thanks!

CommentFileSizeAuthor
#5 jquery_dropdown-7.x-1.x-dev.tgz8.38 KBj0rd

Comments

impeccable-1’s picture

I also need this urgently!! Any plans!! ??

drupa11y’s picture

Me too. Would be very cool for D7.

j0rd’s picture

+1 need this for a site I'm working on.

j0rd’s picture

Actually, this is barely a module. It just adds the CSS & JS. In D7 you could easily be ported to D7 I bet by simply updating the .info files add drupal_get_path() drupal_add_js() and drupal_add_css() are included with D7 and I believe have very similar syntax.

j0rd’s picture

StatusFileSize
new8.38 KB

Here's a port of the module.

If I the maintainer could upload it to the project page so everyone else can use it. Seems to work fine for me. Give a shout out to my user profile :)

I did change the CSS classes and in turn the Javascript. Now instead of underscores it uses dashes.

So. class="jquery_dropdown" becomes class="jquery-dropdown"

Anonymous’s picture

jOrd,

Module contains references to css and js directories. Should be:

function jquery_dropdown_init() {
drupal_add_js(drupal_get_path('module', 'jquery_dropdown').'/jquery_dropdown.js');

//will want to override with your own CSS
drupal_add_css(drupal_get_path('module', 'jquery_dropdown').'/jquery_dropdown.css');
}

branana’s picture

This module can be use as an alternative: http://drupal.org/project/selectmenu

Toxid’s picture

Macjules, I could not get your function to work, it doesn't find the files unless the specific folders are defined. J0rds module works as is though.

jras’s picture

Confirming that #6 works out of the box for D7.

@jOrd Thanks so much for porting and putting it out there for the rest of us. I've been pulling my hair out trying to find a way to theme select lists. This is a great help.