copy link instead of show link text in pm All
This commit is contained in:
parent
df02cff8c7
commit
c8cefb8c62
|
@ -68,7 +68,12 @@ object admin {
|
|||
|
||||
views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = cssTag("team")
|
||||
moreCss = cssTag("team"),
|
||||
moreJs = embedJsUnsafe(s"""
|
||||
|$$('.copy-url-button').on('click', function(e) {
|
||||
|$$('#form3-message').val(function(i, x) {return x + $$(e.target).data('copyurl') + '\\n'})
|
||||
|})
|
||||
|""".stripMargin),
|
||||
) {
|
||||
main(cls := "page-menu page-small")(
|
||||
bits.menu(none),
|
||||
|
@ -91,8 +96,11 @@ object admin {
|
|||
" ",
|
||||
momentFromNow(t.startsAt),
|
||||
" - ",
|
||||
netDomain,
|
||||
routes.Tournament.show(t.id).url
|
||||
a(
|
||||
dataIcon := "u",
|
||||
cls := "text copy-url-button",
|
||||
data.copyurl := s"${netDomain}${routes.Tournament.show(t.id).url}",
|
||||
)("Copy URL")
|
||||
)
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue