madrobby / scripty2

scripty2: for a more delicious web
http://scripty2.com/
Other
516 stars 57 forks source link

Button can still be clicked after setEnabled(false) #32

Open colinmollenhour opened 13 years ago

colinmollenhour commented 13 years ago

On form submit I disable all button on the page with:

$$('.ui-button').each(function(button){ button.retrieve('ui.button').setEnabled(false); });

For buttons that are <a> elements, they have the correct visual style but can still be clicked as if they were enabled.