diff --git a/hwe/js/common.js b/hwe/js/common.js index 7ee16d19..b529c5cd 100644 --- a/hwe/js/common.js +++ b/hwe/js/common.js @@ -133,7 +133,7 @@ function getIconPath(imgsvr, picture){ jQuery(function($){ $('.obj_tooltip').tooltip({ title:function(){ - return $(this).find('.tooltiptext').html(); + return $.trim($(this).find('.tooltiptext').html()); }, html:true }); diff --git a/hwe/js/select_npc.js b/hwe/js/select_npc.js index 0aaab52f..773e9bf8 100644 --- a/hwe/js/select_npc.js +++ b/hwe/js/select_npc.js @@ -121,7 +121,7 @@ function printGenerals(value){ $card.find('.select_btn').click(pickGeneral); $card.find('.obj_tooltip').tooltip({ title:function(){ - return $(this).find('.tooltiptext').html(); + return $.trim($(this).find('.tooltiptext').html()); }, html:true });