...
|
...
|
@@ -437,6 +437,26 @@ $seniorAttrWrap.on('mouseenter', '.attr', function() { |
|
|
// 【高级选项】多选
|
|
|
$('.senior-sub').on('click', '.multi-select', function() {
|
|
|
$(this).closest('.senior-sub').addClass('multi');
|
|
|
}).on('click', '.check-container .attr', function() {
|
|
|
var $this = $(this),
|
|
|
$check = $this.find('.checkbox'),
|
|
|
$btnOk = $this.closest('.senior-content').find('.multi-select-ok');
|
|
|
|
|
|
$check.toggleClass('checked');
|
|
|
|
|
|
if ($check.hasClass('checked')) {
|
|
|
$check.html(checkUnicode.checked);
|
|
|
} else {
|
|
|
$check.html(checkUnicode.unchecked);
|
|
|
}
|
|
|
|
|
|
// 更新按钮状态
|
|
|
if ($check.hasClass('checked') ||
|
|
|
$this.siblings('.attr').find('.checked').length > 0) {
|
|
|
$btnOk.removeClass('dis');
|
|
|
} else {
|
|
|
$btnOk.addClass('dis');
|
|
|
}
|
|
|
}).on('click', '.multi-select-ok', function() {
|
|
|
var $btn2 = $(this),
|
|
|
$sub = $btn2.closest('.senior-sub'),
|
...
|
...
|
@@ -451,6 +471,14 @@ $('.senior-sub').on('click', '.multi-select', function() { |
|
|
});
|
|
|
|
|
|
uriLoc($sub.data('attr'), val.join(','));
|
|
|
}).on('click', '.multi-select-cancel', function() {
|
|
|
var $panel = $(this).closest('.multi');
|
|
|
|
|
|
$panel.removeClass('multi');
|
|
|
clearChecked($panel.find('.checkbox.checked'), $panel.find('.attr.checked')); // 清除选中状态
|
|
|
|
|
|
// 确定按钮状态恢复dis
|
|
|
$(this).siblings('.multi-select-ok').addClass('dis');
|
|
|
}).on('mouseenter', function() {
|
|
|
clearTimeout(seniorHoverTime);
|
|
|
}).on('mouseleave', function() {
|
...
|
...
|
|