Skip to content

Commit

Permalink
Select message is changed for form fields drop down
Browse files Browse the repository at this point in the history
  • Loading branch information
coderscom committed Mar 15, 2017
1 parent 5fd41cb commit 933cabb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions admin/class-wp-odoo-form-integrator-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ private function include_common_form_mapping() {

$this->js_object['str_select_form_type'] = __( 'Please select form type', 'wp-odoo-form-integrator' );
$this->js_object['str_select_form'] = __( 'Please select form', 'wp-odoo-form-integrator' );
$this->js_object['str_select_form_fields'] = __( 'Please select form fields', 'wp-odoo-form-integrator' );
$this->js_object['str_select_odoo_model'] = __( 'Please select odoo model', 'wp-odoo-form-integrator' );
$this->js_object['str_form_type_change_warning'] = __( 'Change of form type will reset form and field mapping. Do you want to continue?', 'wp-odoo-form-integrator' );
$this->js_object['str_form_change_warning'] = __( 'Change of form will reset field mapping. Do you want to continue?', 'wp-odoo-form-integrator' );
Expand Down
4 changes: 2 additions & 2 deletions admin/js/wp-odoo-form-integrator-admin-add-new.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
$("#"+key).empty();
var $el = $("#"+key);
$el.append($("<option></option>")
.attr("value", '').text(wp_odoo_form_integrator_admin_add_new.str_select_form));
.attr("value", '').text(wp_odoo_form_integrator_admin_add_new.str_select_form_fields));
$.each(form_fields, function(value, key) {
$el.append($("<option></option>")
.attr("value", value).text(key));
Expand Down Expand Up @@ -275,7 +275,7 @@
if (form_fields){
var $el = $("#"+key);
$el.append($("<option></option>")
.attr("value", '').text(wp_odoo_form_integrator_admin_add_new.str_select_form));
.attr("value", '').text(wp_odoo_form_integrator_admin_add_new.str_select_form_fields));
$.each(form_fields, function(value, key) {
$el.append($("<option></option>")
.attr("value", value).text(key));
Expand Down

0 comments on commit 933cabb

Please sign in to comment.