사이드뷰 스크립트 수정

This commit is contained in:
chicpro
2013-02-01 11:30:46 +09:00
parent f8dbcc47eb
commit 5b929601bd

View File

@ -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');
}
});
});