I'm interested, if you could solve this generically. It's annoyed me forever - especially on the admin/settings/performance page where I was always clearing the cache instead of saving my settings.
This is browser-dependent behavior. Firefox behaves differently from Chrome. I believe Chrome just won't act if there's more than one button. Firefox takes the first.
I'm definitely interested in a general solution.
-Randy
Found my own solution, a jQuery based script that searchs for a specific
class on form input elements and trick the browser by preprending a
cloned version of the default submit button on top of the form.
If works well, the page remains CSS/XHTML compliant, and is, I think,
cross browser compatible.
Do you people think it worth the shot commiting this really simple
module on drupal.org cvs and create a new project ?
The fact is I need it on many modules, which are not dependent by the
way, so I need this to be in its own projet.
Any people interested?
--
Pierre Rineau
Courriel -- Jabber/XMPP(/GTalk): pierre.rineau@processus.org
Tél: +33 (0)6 59 46 62 27