@@ -389,6 +389,11 @@ var initMoes = function() {
return;
}
+ // check and trigger onbeforesubmit
+ if($(form).is('[onbeforesubmit]')) {
+ window[$(form).attr('onbeforesubmit')].call($(realForm)[0]);
+ }
+
// submit
moe.isProcessing = true;
var data = {};