newsletter_type
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
1 changed file
with
3 additions
and
2 deletions
| ... | @@ -412,16 +412,17 @@ endforeach; | ... | @@ -412,16 +412,17 @@ endforeach; |
| 412 | fr_subject: $('[name="fr_subject"]').val(), | 412 | fr_subject: $('[name="fr_subject"]').val(), |
| 413 | en_html: jQuery(tinymce.get('en_html').getBody()).html(), | 413 | en_html: jQuery(tinymce.get('en_html').getBody()).html(), |
| 414 | fr_html: jQuery(tinymce.get('fr_html').getBody()).html(), | 414 | fr_html: jQuery(tinymce.get('fr_html').getBody()).html(), |
| 415 | newsletter_type: jQuery('[name="newsletter_type]').val(), | 415 | newsletter_type: jQuery('#newsletter_type').val(), |
| 416 | }; | 416 | }; |
| 417 | $.ajax({ | 417 | $.ajax({ |
| 418 | url: '/wp-admin/admin-ajax.php', | 418 | url: '/wp-admin/admin-ajax.php', |
| 419 | data: (options), | 419 | data: (options), |
| 420 | type: 'POST', | 420 | type: 'POST', |
| 421 | dataType: 'json', | 421 | dataType: 'json', |
| 422 | |||
| 423 | success: function(data) { | 422 | success: function(data) { |
| 423 | console.log(data.success); | ||
| 424 | if (data.success == "true") { | 424 | if (data.success == "true") { |
| 425 | console.log(data.success); | ||
| 425 | alert("Newsletter Saved"); | 426 | alert("Newsletter Saved"); |
| 426 | } | 427 | } |
| 427 | } | 428 | } | ... | ... |
-
Please register or sign in to post a comment