Authored by xuqi

hideSeniorPanel

... ... @@ -70,6 +70,13 @@ function uriLoc(attr, val) {
window.location.href = newHref;
}
//隐藏高级选项面板
function hideSeniorPanel(index) {
$seniorSubWrap.children('.senior-sub:eq(' + hoveredIndex + ')').addClass('hide');
$seniorAttrWrap.children('.attr:eq(' + hoveredIndex + ')').removeClass('hover');
hoveredIndex = -1;
}
//屏蔽筛选项双击文字选中
$('.filter-box').on('selectstart', '.attr, .brands-index span', function() {
return false;
... ... @@ -258,9 +265,7 @@ $seniorAttrWrap.on('mouseenter', '.attr', function() {
hoveredIndex = index;
seniorHoverTime = setTimeout(function() {
$seniorSubWrap.children('.senior-sub:eq(' + index + ')').addClass('hide');
$this.removeClass('hover');
hoveredIndex = -1;
hideSeniorPanel();
}, 100);
});
... ... @@ -286,7 +291,5 @@ $('.senior-sub').on('click', '.multi-select', function() {
}).on('mouseenter', function() {
clearTimeout(seniorHoverTime);
}).on('mouseleave', function() {
$seniorSubWrap.children('.senior-sub:eq(' + hoveredIndex + ')').addClass('hide');
$seniorAttrWrap.children('.attr:eq(' + hoveredIndex + ')').removeClass('hover');
hoveredIndex = -1;
hideSeniorPanel();
});
\ No newline at end of file
... ...