oo7ph / Trello-Clone

23 stars 7 forks source link

Clone a task into the same list/board #3

Closed clakech closed 12 years ago

clakech commented 12 years ago

Really good and usefull Add ons for Trello,

How difficult it is to contribute to Trellon-Clone to add this feature?


As a Trello user, I want to be able to clone a task, To be able to easily reuse the content of a task into another one.

On a Task, add a clone button, then clone this task into the same list on the same board.

I see you already have the methods to do it but since I am not a JS developer (I'am a java one) so I don't understand the difference between the source js files and the other without source in their name.

Best regards

raineorshine commented 12 years ago

The ability to clone a card or a list has been added in v0.2 of the chrome extension! Let me know if you notice any other issues.

Chrome extensions do not typically allow access to the host page's Javascript. This script makes heavy use of existing Javascript on the host page (all of the board data) so we have to use an injection script so that our scripts are run in the scope of the host page. In order to do this, the source files have to first be string-escaped (such as with http://www.htmlescape.net/stringescape_tool.html). It's an annoying step, but it's the only way to write a Chrome extension and access the host page's Javascript.

We reorganized the project layout a bit, which hopefully makes it a little clearer what is going on. Javascript is a very different beast if you're not used to front-end development. Let me know if you have any more questions!