@@ 1090-1096 (lines=7) @@ | ||
1087 | EE_Error::add_success(__('The State was added successfully.', 'event_espresso')); |
|
1088 | } |
|
1089 | ||
1090 | if (defined('DOING_AJAX')) { |
|
1091 | $notices = EE_Error::get_notices(false, false, false); |
|
1092 | echo wp_json_encode(array_merge($notices, array('return_data' => $CNT_ISO))); |
|
1093 | die(); |
|
1094 | } else { |
|
1095 | $this->_redirect_after_action($success, 'State', 'added', array('action' => 'country_settings')); |
|
1096 | } |
|
1097 | } |
|
1098 | ||
1099 | ||
@@ 1137-1144 (lines=8) @@ | ||
1134 | ); |
|
1135 | EE_Error::add_success(__('The State was deleted successfully.', 'event_espresso')); |
|
1136 | } |
|
1137 | if (defined('DOING_AJAX')) { |
|
1138 | $notices = EE_Error::get_notices(false, false); |
|
1139 | $notices['return_data'] = true; |
|
1140 | echo wp_json_encode($notices); |
|
1141 | die(); |
|
1142 | } else { |
|
1143 | $this->_redirect_after_action( |
|
1144 | $success, |
|
1145 | 'State', |
|
1146 | 'deleted', |
|
1147 | array('action' => 'country_settings') |