@@ 1006-1012 (lines=7) @@ | ||
1003 | EE_Error::add_success(__('The State was added successfully.', 'event_espresso')); |
|
1004 | } |
|
1005 | ||
1006 | if (defined('DOING_AJAX')) { |
|
1007 | $notices = EE_Error::get_notices(false, false, false); |
|
1008 | echo wp_json_encode(array_merge($notices, array('return_data' => $CNT_ISO))); |
|
1009 | die(); |
|
1010 | } else { |
|
1011 | $this->_redirect_after_action($success, 'State', 'added', array('action' => 'country_settings')); |
|
1012 | } |
|
1013 | } |
|
1014 | ||
1015 | ||
@@ 1057-1064 (lines=8) @@ | ||
1054 | ); |
|
1055 | EE_Error::add_success(__('The State was deleted successfully.', 'event_espresso')); |
|
1056 | } |
|
1057 | if (defined('DOING_AJAX')) { |
|
1058 | $notices = EE_Error::get_notices(false, false); |
|
1059 | $notices['return_data'] = true; |
|
1060 | echo wp_json_encode($notices); |
|
1061 | die(); |
|
1062 | } else { |
|
1063 | $this->_redirect_after_action( |
|
1064 | $success, |
|
1065 | 'State', |
|
1066 | 'deleted', |
|
1067 | array('action' => 'country_settings') |