@@ 585-591 (lines=7) @@ | ||
582 | $this->_template_args['inputs'] = EE_Question_Form_Input::generate_question_form_inputs_for_object( $country, $country_input_types ); |
|
583 | $country_details_settings = EEH_Template::display_template( GEN_SET_TEMPLATE_PATH . 'country_details_settings.template.php', $this->_template_args, TRUE ); |
|
584 | ||
585 | if ( defined( 'DOING_AJAX' )) { |
|
586 | $notices = EE_Error::get_notices( FALSE, FALSE, FALSE ); |
|
587 | echo json_encode( array( 'return_data' => $country_details_settings, 'success' => $notices['success'], 'errors' => $notices['errors'] )); |
|
588 | die(); |
|
589 | } else { |
|
590 | return $country_details_settings; |
|
591 | } |
|
592 | ||
593 | } |
|
594 | ||
@@ 646-652 (lines=7) @@ | ||
643 | ||
644 | $state_details_settings = EEH_Template::display_template( GEN_SET_TEMPLATE_PATH . 'state_details_settings.template.php', $this->_template_args, TRUE ); |
|
645 | ||
646 | if ( defined( 'DOING_AJAX' )) { |
|
647 | $notices = EE_Error::get_notices( FALSE, FALSE, FALSE ); |
|
648 | echo json_encode( array( 'return_data' => $state_details_settings, 'success' => $notices['success'], 'errors' => $notices['errors'] )); |
|
649 | die(); |
|
650 | } else { |
|
651 | return $state_details_settings; |
|
652 | } |
|
653 | ||
654 | } |
|
655 |