ARCHIVE POST ORDER PLUS
翻訳対応 検索のカスタムフィールド選択バグ修正
This commit is contained in:
+8
-2
@@ -222,14 +222,20 @@ jQuery(function ($) {
|
||||
}
|
||||
|
||||
function en_dis_list(obj, type) {
|
||||
let select_msg = 'Select from existing custom fields';
|
||||
let add_msg = 'Added custom field for APOP';
|
||||
if ($('.post-setting-box').hasClass('apop-lang-ja')) {
|
||||
select_msg = '既存のカスタムフィールドから選択';
|
||||
add_msg = 'APOP専用カスタムフィールドを追加';
|
||||
}
|
||||
if (type == 1) {
|
||||
obj.parents('.product-list-sort-type').find('.custom_field_key_select').prop('disabled', false).show();
|
||||
obj.parents('.product-list-sort-type').find('.custom_field_key').prop('disabled', true).hide();
|
||||
obj.parents('.product-list-sort-type').find('.custom-field-select-alert').text('既存のカスタムフィールドから選択');
|
||||
obj.parents('.product-list-sort-type').find('.custom-field-select-alert').text(select_msg);
|
||||
} else if (type == 2) {
|
||||
obj.parents('.product-list-sort-type').find('.custom_field_key').prop('disabled', false).show();
|
||||
obj.parents('.product-list-sort-type').find('.custom_field_key_select').prop('disabled', true).hide();
|
||||
obj.parents('.product-list-sort-type').find('.custom-field-select-alert').text('APOP専用カスタムフィールドを追加');
|
||||
obj.parents('.product-list-sort-type').find('.custom-field-select-alert').text(add_msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user