phpMyEdit - Viewing Bug Advanced Details [ Go Back ]
437 core / general major always 2007-03-24 00:31 2007-04-13 12:53
jimrafert Red hat  
michal Linux Enterprise  
normal 4  
resolved 5.6 (stable)  
fixed  
none  
none  
Custom buttons with JS always show disabled
When a custom button is defined with the ['js'] option set, the button always displays as disabled.
In display_button(), the call to htmlSubmit() is missing the js_validation parameter, thus ['disabled'] is getting passed to js_validation, and ['js'] gets passed as the disabled parameter.

Also, you should skip js validation checks if ['js'] includes 'onclick'. Document this so we know how to call validation checks from our own onclick scripts.

Bug Notes
michal   
2007-04-13 12:53   
fixed in cvs, please check if works as desired, feel free to reopen if not.