Skip to content

Commit

Permalink
Merge pull request #563 from ikedas/issue-562 by ikedas
Browse files Browse the repository at this point in the history
import.tt2: non-working line break in toolip (#562)
  • Loading branch information
ikedas authored Mar 7, 2019
2 parents 5c3a736 + 9f2b36c commit de6f3d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion default/web_tt2/import.tt2
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
9 changes: 9 additions & 0 deletions www/js/sympa.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
});

0 comments on commit de6f3d1

Please sign in to comment.