| @@ -595,9 +595,9 @@ | ||
| 595 | 595 | |
| 596 | 596 | wpbm_open_meta_box_section( $submit_form_name . 'actions', __('Actions', 'booking-manager') ); |
| 597 | 597 | |
| 598 | 598 | ?><a class="button button-secondary" style="margin:0 0 5px;" href="javascript:void(0)" |
| 599 | - onclick="javascript: jQuery('#form_action').val('test_send'); jQuery('form#<?php echo $submit_form_name_action; ?>').submit();" | |
| 599 | + onclick="javascript: jQuery('#form_action').val('test_send'); jQuery('form#<?php echo $submit_form_name_action; ?>').trigger( 'submit' );" | |
| 600 | 600 | ><?php _e('Send Test Email', 'booking-manager'); ?></a><?php |
| 601 | 601 | |
| 602 | 602 | ?><input type="submit" value="<?php _e('Save Changes', 'booking-manager'); ?>" class="button button-primary right" style="margin:0 0 5px 5px;" /><?php |
| 603 | 603 | |
| @@ -607,9 +607,9 @@ | ||
| 607 | 607 | <a class="button button-secondary right" |
| 608 | 608 | href="javascript:void(0)" |
| 609 | 609 | onclick="javascript: if ( wpbm_are_you_sure('<?php echo esc_js(__('Do you really want to delete this item?', 'booking-manager')); ?>') ){ |
| 610 | 610 | jQuery('#form_action').val('delete'); |
| 611 | - jQuery('form#<?php echo $submit_form_name_action; ?>').submit(); | |
| 611 | + jQuery('form#<?php echo $submit_form_name_action; ?>').trigger( 'submit' ); | |
| 612 | 612 | }" |
| 613 | 613 | ><?php _e('Delete Email', 'booking-manager'); ?></a> |
| 614 | 614 | <?php */ |
| 615 | 615 | |
| @@ -695,9 +695,9 @@ | ||
| 695 | 695 | |
| 696 | 696 | if ( $email_result ) |
| 697 | 697 | wpbm_show_message ( __('Email sent to ', 'booking-manager') . ' ' . $this->mail_api()->get_from__email_address() , 5 ); |
| 698 | 698 | else |
| 699 | - wpbm_show_message ( __('Email had not sent. Some error occuered.', 'booking-manager'), 5 ,'error' ); | |
| 699 | + wpbm_show_message ( __('Email was not sent. An error occurred.', 'booking-manager'), 5 ,'error' ); | |
| 700 | 700 | } |
| 701 | 701 | |
| 702 | 702 | /* |
| 703 | 703 | if ( $_POST['form_action'] == 'create' ) { // Create |