Unverified Commit de6f3d13 authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #563 from ikedas/issue-562 by ikedas

import.tt2: non-working line break in toolip (#562)
parents 5c3a7366 9f2b36cf
......@@ -5,7 +5,7 @@
<div>
<textarea name="dump" id="dump" cols="80" rows="25"
data-tooltip aria-haspopup="true"
title="[%|loc%]email1@dom1 Name1[%END%]<br/>[%|loc%]email2@dom2 Name2[%END%]<br/>[%|loc%]...[%END%]">
title="[% "email1@dom1 Name1\nemail2@dom2 Name2\n..." | loc | replace("\n",'&#13;&#10;') %]">
[%~ dump ~%]
</textarea>
</div>
......
......@@ -306,3 +306,12 @@ $(function() {
});
});
/* Replace line breaks in tooltip by Foundation (See GH issue #562). */
$(function() {
$('div.tooltip').each(function(){
var tooltip = $(this);
tooltip.html(tooltip.html().replace(/\r\n|\r|\n/g, '<br />'));
return true;
});
});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment