プロジェクト

全般

プロフィール

Vote #67686

未完了

Copy RSS/REST API keys to clipboard with javascript

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
UI_10
開始日:
2010/07/24
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
32
issue_org_id:
5953
author_id:
5674
assigned_to_id:
0
comments:
11
status_id:
1
tracker_id:
2
plus1:
3
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

I hope that we can copy (and paste) RSS/REST API keys to clipboard with javascript since key value is pretty long.


journals

You can already copy the key by selecting the text, we might be able to make it a little easier though by copying some of the features of Holger's Checkout Plugin.
--------------------------------------------------------------------------------
Thaks for your reply!

Felix Schäfer wrote:
> You can already copy the key by selecting the text, we might be able to make it a little easier though by copying some of the features of Holger's Checkout Plugin.

I've added above Redmine Checkout plugin. This is so nice and this looks like GitHub's copy URL function :)
It seems the function to copy the URL for checkout is using some swf(Flash) object.

* http://code.google.com/p/zeroclipboard/wiki/Instructions

I think it's nice if this javascript library was included not only plugin but also rdmine itself.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
When the API access key is displayed, the copy link is displayed. Click this link to copy the API access key to the clipboard.

!{width:50%;border:1px solid #ccc;}add_link_to_copy.png!

I attached a patch.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Thank you for posting the patch. I tried out it and noticed the following points:

* There is no feedback when you click the Copy link. Users may confused and click the link again and again
* In Redmine, copy.png and the label "Copy" means creating an object by cloning the existing one. I think it is better to use another icon or label
--------------------------------------------------------------------------------
Fixed to work with JavaScript function @copyTextToClipboard@ added to the trunk (r20816).
https://www.redmine.org/projects/redmine/repository/revisions/20816/diff/trunk/public/javascripts/application.js

Go MAEDA wrote:
> Thank you for posting the patch. I tried out it and noticed the following points:
>
> * There is no feedback when you click the Copy link. Users may confused and click the link again and again
> * In Redmine, copy.png and the label "Copy" means creating an object by cloning the existing one. I think it is better to use another icon or label

Sorry, I haven't fixed these yet.

--------------------------------------------------------------------------------
+1 for this to be core feature
--------------------------------------------------------------------------------
+1 for this to be core feature and #29214 the pre tag is even more important, especially good use-case is copying blocks of code...
--------------------------------------------------------------------------------


related_issues

relates,New,29214,Button to copy PRE block content to clipboard

Admin Redmine さんが3年以上前に更新

  • カテゴリUI_10 にセット
  • 対象バージョンCandidate for next major release_32 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0