Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
de6f3d13
Unverified
Commit
de6f3d13
authored
Mar 07, 2019
by
IKEDA Soji
Committed by
GitHub
Mar 07, 2019
Browse files
Merge pull request #563 from ikedas/issue-562 by ikedas
import.tt2: non-working line break in toolip (#562)
parents
5c3a7366
9f2b36cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
default/web_tt2/import.tt2
View file @
de6f3d13
...
...
@@ -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",' ')
%]">
[%~ dump ~%]
</textarea>
</div>
...
...
www/js/sympa.js
View file @
de6f3d13
...
...
@@ -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
;
});
});
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment