Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v0.3.1
* Fork from official repository in order to re-enable "Clone Board" feature

v0.3
* Updated selector for clone button to support Trello Changes.

Expand Down
2 changes: 1 addition & 1 deletion chrome/inject/trello_clone_button.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Trello Clone",
"version": "0.3",
"version": "0.3.1",
"description": "Clone a Trello Board",
"icons": { "128": "images/128-icon.png" },
"homepage_url": "https://github.com/oo7ph/Trello-Clone",
Expand Down
10 changes: 5 additions & 5 deletions chrome/source/trello_clone_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
*/

/** Adds a button to the right board widget content area that allows the user to clone the current board. */
$("a:contains(Board Menu)").livequery(function() {
var boardContent = $(this).parent();
var button = $('<a class="button-link highlight-icon"> Clone Board </a>');
button.click(function() {
$("a:contains(Unpin from)").livequery(function() {
var boardContent = $(this).parent().parent();
var button = $('<li><a class="js-clone-board"> Clone Board </a></li>');
$('a', button).click(function() {
var name = prompt("Enter a name for the new board:", "Clone of " + boardView.model.get("name"));
if(name) {
cloneCurrentBoard(name);
}
});

boardContent.append(button);
button.insertAfter($(this));
});