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();