From d051cacf7fb515204abf0f559a7430bb3ce785c9 Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 1 Feb 2013 09:27:07 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=9D=B4=EB=93=9C=EB=B7=B0=20?= =?UTF-8?q?=EC=A0=9C=EC=96=B4=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/common.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/js/common.js b/js/common.js index 46a070e04..c176fe94a 100644 --- a/js/common.js +++ b/js/common.js @@ -569,13 +569,25 @@ $(function(){ }); // 사이드뷰 + var sv_hide = true; $('.sv').click(function() { $('.sv_wrap').hide(); - $(this).find('.sv_wrap').css("display", "block"); + $(this).find('.sv_wrap').show(); }); + $('.sv_wrap').hover( + function() { + sv_hide = false; + }, + function() { + sv_hide = true; + } + ); + $(document).click(function() { - // $('.sv_wrap').hide(); + if(sv_hide) { + $('.sv_wrap').hide(); + } }); }); \ No newline at end of file