mirror of
https://github.com/wekan/wekan.git
synced 2026-02-25 17:34:07 +01:00
Merge branch 'master' of https://github.com/wekan/wekan into search
This commit is contained in:
commit
bb7490a32b
72 changed files with 68434 additions and 59526 deletions
|
|
@ -12,7 +12,6 @@ template(name="cardDetails")
|
|||
a.fa.fa-link.card-copy-button.js-copy-link(
|
||||
class="fa-link"
|
||||
title="{{_ 'copy-card-link-to-clipboard'}}"
|
||||
value="{{ originRelativeUrl }}"
|
||||
)
|
||||
if isMiniScreen
|
||||
a.fa.fa-times-thin.close-card-details-mobile-web.js-close-card-details
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ BlazeComponent.extendComponent({
|
|||
if (card) {
|
||||
const board = Boards.findOne(card.boardId);
|
||||
if (board) {
|
||||
result = FlowRouter.url('card', {
|
||||
result = FlowRouter.path('card', {
|
||||
boardId: card.boardId,
|
||||
slug: board.slug,
|
||||
cardId: card._id,
|
||||
|
|
@ -291,6 +291,8 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
'click .js-copy-link'() {
|
||||
StringToCopyElement = document.getElementById('cardURL_copy');
|
||||
StringToCopyElement.value =
|
||||
window.location.origin + window.location.pathname;
|
||||
StringToCopyElement.select();
|
||||
if (document.execCommand('copy')) {
|
||||
StringToCopyElement.blur();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue