From 8781e7c6ad453150f573ee4ce6eaa7e9b132db8b Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 10 Apr 2019 23:27:53 +0900 Subject: [PATCH] =?UTF-8?q?tooltip=20=EC=B2=98=EB=A6=AC=20=EB=B0=A9?= =?UTF-8?q?=EC=8B=9D=EC=9D=84=20=EC=A7=80=EC=97=B0=20=EC=B2=98=EB=A6=AC?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/js/common.js | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/hwe/js/common.js b/hwe/js/common.js index 2e5c7c2e..285a1926 100644 --- a/hwe/js/common.js +++ b/hwe/js/common.js @@ -211,13 +211,16 @@ function activeFlipItem($img){ } jQuery(function($){ - $('.obj_tooltip').each(function(){ + $('.obj_tooltip').mouseover(function(){ var $objTooltip = $(this); + if($objTooltip.data('setObjTooltip')){ + return true; + } + var tooltipClassText = $objTooltip.data('tooltip-class'); if(!tooltipClassText){ tooltipClassText = ''; } - console.log($objTooltip.data('tooltip-class')); var template = '' .format(tooltipClassText); @@ -227,9 +230,15 @@ jQuery(function($){ }, template:template, html:true - }); - + }).tooltip('show'); + + $objTooltip.data('setObjTooltip', true); }); + /*each(function(){ + var $objTooltip = $(this); + + + });*/ activeFlip();