3 replies [Last post]
kerunt's picture
Offline
Bug Finder
Joined: 05/05/2008
Juice: 158
Was this information Helpful?

I've added some text in between fieldset panes on the checkout form ('uc-cart-checkout-form') via hook_form_alter(), and for 30 minutes was tearing my hair out in trying to get it to show up. As it turns out, some magic javascript feels it is necessary to remove any plain text in between the fieldsets. Wrapping the same plain text in a '' solves the problem.

Why is this necessary?

kerunt's picture
Offline
Bug Finder
Joined: 05/05/2008
Juice: 158
kerunt wrote:I've added some
kerunt wrote:

I've added some text in between fieldset panes on the checkout form ('uc-cart-checkout-form') via hook_form_alter(), and for 30 minutes was tearing my hair out in trying to get it to show up. As it turns out, some magic javascript feels it is necessary to remove any plain text in between the fieldsets. Wrapping the same plain text in a <div> solves the problem.

... in a <div> ...

kerunt's picture
Offline
Bug Finder
Joined: 05/05/2008
Juice: 158
Re: kerunt wrote:I've added some

Sorry, pointed the finger too soon... seemed logical that this would be Ubercart's JS' work, but in reality misc/collapse.js is to blame! In particular the

// Global Killswitch
if (Drupal.jsEnabled)
{
...
}

code block! Argh!

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: kerunt wrote:I've added some

hehe Yeah, I ran into this one a while back, too. No hard feelings. Eye-wink