mirror of
https://github.com/wekan/wekan.git
synced 2025-12-20 17:30:13 +01:00
Changed copy icon to a "href" link
- mouse hover changes the icon
This commit is contained in:
parent
7db1445d09
commit
6d3ecdea55
3 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
template(name="editor")
|
template(name="editor")
|
||||||
span.fa.fa-copy
|
a.fa.fa-copy(title="copy text to clipboard")
|
||||||
span.copied-tooltip {{_ 'copied'}}
|
span.copied-tooltip {{_ 'copied'}}
|
||||||
textarea.editor(
|
textarea.editor(
|
||||||
dir="auto"
|
dir="auto"
|
||||||
|
|
|
||||||
|
|
@ -286,7 +286,7 @@ BlazeComponent.extendComponent({
|
||||||
events() {
|
events() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
'click span.fa.fa-copy'(event) {
|
'click a.fa.fa-copy'(event) {
|
||||||
const $editor = this.$('textarea.editor');
|
const $editor = this.$('textarea.editor');
|
||||||
const promise = Utils.copyTextToClipboard($editor[0].value);
|
const promise = Utils.copyTextToClipboard($editor[0].value);
|
||||||
if (promise) {
|
if (promise) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
.new-comment,
|
.new-comment,
|
||||||
.inlined-form
|
.inlined-form
|
||||||
span.fa.fa-copy
|
a.fa.fa-copy
|
||||||
float: right
|
float: right
|
||||||
position: relative
|
position: relative
|
||||||
top: 20px
|
top: 20px
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue