OSDN Git Service

Escape quotes in title also.
authorKazuhiro Ogura <rgoura@karesansui-project.info>
Mon, 14 Jun 2010 09:32:50 +0000 (18:32 +0900)
committerKazuhiro Ogura <rgoura@karesansui-project.info>
Mon, 14 Jun 2010 09:32:50 +0000 (18:32 +0900)
karesansui/templates/default/data/js/tooltip.js

index b0d1a9b..2e43e37 100644 (file)
@@ -13,6 +13,7 @@
 
 function helptip(id, title, value){
     var a_id = id.replace(/^#/, "");
+    title = title.replace(/\"/g, "&quot;");
     value = value.replace(/\"/g, "&quot;");
     var action = '<a id="' + a_id + '_a" class="helptip" href="#" title="' + title + '|' + value + '"><img src="${ctx.homepath}/static/images/help.gif" alt="" /></a>';
     $(id).append(action);