I'm trying to exclude cufon replacement of child objects of my menu: I want Cufon only on the first level.

the structure is:

    • ....
  • .......

I applied cufon on the module interface using #primary ul.sf-menu a and , oviously, it applied cufon to ALL a tags.
I tried separately on scripts.js the function Cufon.replace(':not(#navbar ul.sf-menu ul.menu) > a'); but it doesn't works well.

Somebody can help me with a tip or an advice?

Thank you!


davideads’s picture

Status: Active » Fixed

Fixed in latest CVS commits (see http://drupal.org/node/550060).

Funkwarrior’s picture

thank you!

davideads’s picture

Fixed in 6--1-0-BETA4.

davideads’s picture

Status: Fixed » Closed (fixed)
Funkwarrior’s picture

Sorry, I don't understand how to use, for example, this code

$("ul > li a").not("ul li ul a")

in the cufon settings. Can you help me?

Thank you!

Funkwarrior’s picture

Status: Closed (fixed) » Active

no hints?

davideads’s picture

Hmm, that's an interesting scenario. As it stands, you can only enter a selector, so you can't use the 'not' method to filter your result. I'm drawing a blank on how to factor a selector that would work, but I'll see if I can come up with something.

davideads’s picture

I am thinking something along these lines should work: #myID li a:not("li li a") ...but I haven't tried it yet.

davideads’s picture

Status: Active » Closed (fixed)

Okay, this is possible via the technique described in the comment above, but complex selectors in the :not(...) selector are not supported in jQuery versions less than 1.3. You need jQuery update 6.x.2.x to support jQuery 1.3.x (currently 1.3.2).

I'll amend the project page with this information.

Funkwarrior’s picture

Runs good! Thank you!

luco’s picture

@davideads, there's no such version of JQuery - only 6.x-2.x-dev, which causes this: #539960: jQuery Update is incompatible with Lightbox2

any other hints as to solving this parenting issue? I'm at a total loss here. any help is appreciated.