WP PLUGIN CSSセレクタの修正
・アンダーバーからハイフンに変更
This commit is contained in:
+14
-14
@@ -57,9 +57,9 @@ jQuery(function ($) {
|
||||
update: function () {
|
||||
let list_count = $('.product-list', my_list).length;
|
||||
for (let j = 0; j < list_count; j++) {
|
||||
let list_order = j + 1;
|
||||
$('.list_order:eq(' + j + ')', my_list).val(list_order);
|
||||
$('.list_order:eq(' + j + ')', my_list).siblings('.sort-num-label').text(list_order);
|
||||
let list_order_num = j + 1;
|
||||
$('.list-order:eq(' + j + ')', my_list).val(list_order_num);
|
||||
$('.list-order:eq(' + j + ')', my_list).siblings('.sort-num-label').text(list_order_num);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -70,12 +70,12 @@ jQuery(function ($) {
|
||||
|
||||
function change_sort_box() {
|
||||
let s_radio = $('.sort_menu');
|
||||
let sort_menu_size = $('.sort_menu_list').length;
|
||||
let sort_menu_size = $('.sort-menu-list').length;
|
||||
|
||||
$('.sort_box').hide();
|
||||
for (let i = 0; i < sort_menu_size; i++) {
|
||||
let type_index = $('.sort_menu_list:eq(' + i + ')').data('order_target') - 1;
|
||||
$('.sort_menu_list:eq(' + i + ')').siblings('.sort_box:eq(' + type_index + ')').show();
|
||||
let type_index = $('.sort-menu-list:eq(' + i + ')').data('order_target') - 1;
|
||||
$('.sort-menu-list:eq(' + i + ')').siblings('.sort_box:eq(' + type_index + ')').show();
|
||||
}
|
||||
|
||||
s_radio.on('click', function () {
|
||||
@@ -93,18 +93,18 @@ jQuery(function ($) {
|
||||
for (i; i < input_chk_size; i++) {
|
||||
let chk = $('.select_cat_checkbox:eq(' + i + '):checked').length;
|
||||
if (chk == 1) {
|
||||
$('.select_cat:eq(' + i + ')').siblings('.select_per_page').show();
|
||||
$('.select_cat:eq(' + i + ')').siblings('.select-per-page').show();
|
||||
} else {
|
||||
$('.select_cat:eq(' + i + ')').siblings('.select_per_page').hide();
|
||||
$('.select_cat:eq(' + i + ')').siblings('.select-per-page').hide();
|
||||
}
|
||||
}
|
||||
|
||||
select_cat_checkbox.on('click', function () {
|
||||
let checked = $(this).prop('checked');
|
||||
if (checked) {
|
||||
$(this).parent().parent().siblings('.select_per_page').show(200);
|
||||
$(this).parent().parent().siblings('.select-per-page').show(200);
|
||||
} else {
|
||||
$(this).parent().parent().siblings('.select_per_page').hide(200);
|
||||
$(this).parent().parent().siblings('.select-per-page').hide(200);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -157,7 +157,7 @@ jQuery(function ($) {
|
||||
s_box.find(targets).each(function () {
|
||||
if ($(this).prop('checked') == false) {
|
||||
$(this).parents('.product-list-sort-type').find('.order_param').prop('disabled', true);
|
||||
let disable_list = $(this).parents('.sort_box').find('.disable_normal_list');
|
||||
let disable_list = $(this).parents('.sort_box').find('.disable-normal-list');
|
||||
$(this).parents('li').appendTo(disable_list);
|
||||
}
|
||||
});
|
||||
@@ -165,11 +165,11 @@ jQuery(function ($) {
|
||||
if ($(this).prop('checked') == true) {
|
||||
$(this).parents('.product-list-sort-type').find('.order_param').prop('disabled', false);
|
||||
let enable_list = $(this).parents('.sort_box').find('.post-order-list');
|
||||
$(this).parents('li').appendTo(enable_list).removeClass('no_order').hide().fadeIn(200);
|
||||
$(this).parents('li').appendTo(enable_list).removeClass('no-order').hide().fadeIn(200);
|
||||
} else {
|
||||
$(this).parents('.product-list-sort-type').find('.order_param').prop('disabled', true);
|
||||
let disable_list = $(this).parents('.sort_box').find('.disable_normal_list');
|
||||
$(this).parents('li').appendTo(disable_list).addClass('no_order').hide().fadeIn(200);
|
||||
let disable_list = $(this).parents('.sort_box').find('.disable-normal-list');
|
||||
$(this).parents('li').appendTo(disable_list).addClass('no-order').hide().fadeIn(200);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user