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 * Function: onclick
*/ */
onclick: function(e) { onclick: function(e) {
this.parents('form').trigger('submit', [this]); if(!this.is(':disabled')) {
this.parents('form').trigger('submit', [this]);
}
e.preventDefault(); e.preventDefault();
return false; return false;
} }