Don't capture form submits to new windows.

This commit is contained in:
Andrew Short 2012-07-17 16:34:01 +10:00
parent 938bf14d16
commit 9a5baafde7

View File

@ -163,9 +163,10 @@
// which means the browser auto-selects the first available form button.
// This might be an unrelated button of the form field,
// or a destructive action (if "save" is not available, or not on first position).
if(this.prop("target") != "_blank") {
if(button) this.closest('.cms-container').submitForm(this, button);
return false;
}
},
/**