Puttin' the code back
This commit is contained in:
parent
aa3afb7a85
commit
e807cb2f2e
|
@ -245,7 +245,11 @@ jQuery(document).ready(function($) {
|
|||
data: $form.serialize(),
|
||||
success: function( code ) {
|
||||
try {
|
||||
result = $.parseJSON( code );
|
||||
// Get the valid JSON only
|
||||
var code = code.split("<!--WC_END-->")[0];
|
||||
|
||||
// Parse
|
||||
var result = $.parseJSON( code );
|
||||
|
||||
if (result.result=='success') {
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue