Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1622: edit comment on todos #2560

Merged

Conversation

sinejespersen
Copy link
Contributor

Link to ticket

https://leantime.itkdev.dk/#/tickets/showTicket/1622

Description

  • Edit comment on todo
  • Added a bunch of texts
  • Edited some danish text to make a bit more sense, and replaced To-Do with to-do

Screenshot of the result

Buttons:

image

Editing:

image

Additional comments or questions

If you have any further comments or questions for the reviewer, please add them here.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@marcelfolaron
Copy link
Contributor

Thank you! This was a long requested features!

jQuery('.mainToggler-'+formHash).hide();


if (parseInt(id, 10) === 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Radix is 10 by default, so the second parameter in parseInt() can be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah true, I added it though, because if ever a linter is setup on this project it would probably complain about this.

jQuery('#comment-'+formHash+'-' + id + ' .commentReply').prepend('<textarea rows="5" cols="75" name="text" id="editor_'+formHash+'" class="tinymceSimple"></textarea>');
jQuery(`.commentBox-${formHash} textarea`).remove();
jQuery(`.commentBox-${formHash}`).hide();
jQuery(`#comment-${formHash}-${id} .commentReply`).prepend(`<textarea rows="5" cols="75" name="text" id="editor_${formHash}-${id}" class="tinymceSimple">${editComment ? jQuery(`#comment-text-to-hide-${isReply ? 'reply-' : ''}${formHash}-${commentId || id}`).html() : ''}</textarea>`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤯

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🫣

jQuery('.mainToggler-'+formHash).hide();


if (parseInt(id, 10) === 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (parseInt(id, 10) === 0) {
if (parseInt(id) === 0) {

remove embarrassing comma that snuck into my function declaration

Co-authored-by: Jeppe Julius Krogh <106669866+jeppekroghitk@users.noreply.github.com>
@sinejespersen sinejespersen marked this pull request as ready for review June 25, 2024 13:12
@sinejespersen sinejespersen requested a review from a team as a code owner June 25, 2024 13:12
@sinejespersen sinejespersen requested review from broskees and removed request for a team June 25, 2024 13:12
@marcelfolaron marcelfolaron merged commit f89a2f1 into Leantime:master Jun 29, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants