From 1a12c561305f5fec0cc70a12221ee235265e41ec Mon Sep 17 00:00:00 2001 From: Hoang Huu Date: Fri, 6 Dec 2019 10:07:20 +0700 Subject: [PATCH] Fix description when submit. --- assets/js/frontend/submission.js | 2 +- inc/submission/class-metabox-property-submission.php | 6 ++++++ inc/submission/class-opalestate-submission.php | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/assets/js/frontend/submission.js b/assets/js/frontend/submission.js index 8c54495c..ecdfa7d6 100755 --- a/assets/js/frontend/submission.js +++ b/assets/js/frontend/submission.js @@ -111,7 +111,7 @@ jQuery( document ).ready( function ( $ ) { $submit_btn.parents( 'form' ).on( 'submit', function () { submitFormFiles(); - return false; + // return false; } ); // Clicking Next button diff --git a/inc/submission/class-metabox-property-submission.php b/inc/submission/class-metabox-property-submission.php index 8f544e57..a9ea7cad 100755 --- a/inc/submission/class-metabox-property-submission.php +++ b/inc/submission/class-metabox-property-submission.php @@ -110,6 +110,12 @@ class Opalestate_Property_MetaBox_Submission { 'type' => 'wysiwyg', 'default' => ! empty( $post ) ? $post->post_content : '', 'before_row' => '
', + 'options' => [ + 'media_buttons' => false, + 'dfw' => true, + 'tinymce' => true, + 'quicktags' => true, + ], ], [ 'id' => $prefix . 'price', diff --git a/inc/submission/class-opalestate-submission.php b/inc/submission/class-opalestate-submission.php index 2b30dd37..5500868a 100755 --- a/inc/submission/class-opalestate-submission.php +++ b/inc/submission/class-opalestate-submission.php @@ -547,14 +547,14 @@ class OpalEstate_Submission { ] ); } } 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' ), [ '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' ), [ 'heading' => esc_html__( 'Submission Information', 'opalestate-pro' ) ] );