사이드뷰 스크립트 수정
This commit is contained in:
14
js/common.js
14
js/common.js
@ -570,11 +570,9 @@ $(function(){
|
||||
|
||||
// 사이드뷰
|
||||
var sv_hide = false;
|
||||
$('.sv_wrap').addClass('sv_off');
|
||||
|
||||
$('.sv_member, .sv_guest').click(function() {
|
||||
$('.sv_wrap').removeClass('sv_on').addClass('sv_off');
|
||||
$(this).closest('.sv').find('.sv_wrap').removeClass('sv_off').addClass('sv_on');
|
||||
$('.sv_wrap').removeClass('sv_on');
|
||||
$(this).closest('.sv').find('.sv_wrap').addClass('sv_on');
|
||||
});
|
||||
|
||||
$('.sv, .sv_wrap').hover(
|
||||
@ -588,8 +586,8 @@ $(function(){
|
||||
|
||||
$('.sv_member, .sv_guest').focusin(function() {
|
||||
sv_hide = false;
|
||||
$('.sv_wrap').removeClass('sv_on').addClass('sv_off');
|
||||
$(this).closest('.sv').find('.sv_wrap').removeClass('sv_off').addClass('sv_on');
|
||||
$('.sv_wrap').removeClass('sv_on');
|
||||
$(this).closest('.sv').find('.sv_wrap').addClass('sv_on');
|
||||
});
|
||||
|
||||
$('.sv_wrap a').focusin(function() {
|
||||
@ -602,13 +600,13 @@ $(function(){
|
||||
|
||||
$(document).click(function() {
|
||||
if(sv_hide) {
|
||||
$('.sv_wrap').removeClass('sv_on').addClass('sv_off');
|
||||
$('.sv_wrap').removeClass('sv_on');
|
||||
}
|
||||
});
|
||||
|
||||
$(document).focusin(function() {
|
||||
if(sv_hide) {
|
||||
$('.sv_wrap').removeClass('sv_on').addClass('sv_off');
|
||||
$('.sv_wrap').removeClass('sv_on');
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user