BUG Prevent CMS submission on disabled buttons (#7928)

Thanks @jbarrios for triggering this fix
This commit is contained in:
Ingo Schommer 2012-10-08 09:27:38 +02:00
parent c782e00178
commit b38cb39256

View File

@ -205,7 +205,9 @@
* Function: onclick
*/
onclick: function(e) {
if(!this.is(':disabled')) {
this.parents('form').trigger('submit', [this]);
}
e.preventDefault();
return false;
}