Fix description when submit.

This commit is contained in:
Hoang Huu 2019-12-06 10:07:20 +07:00
parent 68482b2432
commit 1a12c56130
3 changed files with 9 additions and 3 deletions

View File

@ -111,7 +111,7 @@ jQuery( document ).ready( function ( $ ) {
$submit_btn.parents( 'form' ).on( 'submit', function () { $submit_btn.parents( 'form' ).on( 'submit', function () {
submitFormFiles(); submitFormFiles();
return false; // return false;
} ); } );
// Clicking Next button // Clicking Next button

View File

@ -110,6 +110,12 @@ class Opalestate_Property_MetaBox_Submission {
'type' => 'wysiwyg', 'type' => 'wysiwyg',
'default' => ! empty( $post ) ? $post->post_content : '', 'default' => ! empty( $post ) ? $post->post_content : '',
'before_row' => '<hr>', 'before_row' => '<hr>',
'options' => [
'media_buttons' => false,
'dfw' => true,
'tinymce' => true,
'quicktags' => true,
],
], ],
[ [
'id' => $prefix . 'price', 'id' => $prefix . 'price',

View File

@ -547,14 +547,14 @@ class OpalEstate_Submission {
] ); ] );
} }
} else { } else {
return opalestate_output_msg_json( fales, return opalestate_output_msg_json( false,
__( 'Currently, your account was blocked, please keep contact admin to resolve this!.', 'opalestate-pro' ), __( 'Currently, your account was blocked, please keep contact admin to resolve this!.', 'opalestate-pro' ),
[ 'heading' => esc_html__( 'Submission Information', 'opalestate-pro' ) ] [ 'heading' => esc_html__( 'Submission Information', 'opalestate-pro' ) ]
); );
} }
} }
return opalestate_output_msg_json( fales, return opalestate_output_msg_json( false,
__( 'Sorry! Your submitted datcould not save a at this time', 'opalestate-pro' ), __( 'Sorry! Your submitted datcould not save a at this time', 'opalestate-pro' ),
[ 'heading' => esc_html__( 'Submission Information', 'opalestate-pro' ) ] [ 'heading' => esc_html__( 'Submission Information', 'opalestate-pro' ) ]
); );