-
-
Notifications
You must be signed in to change notification settings - Fork 601
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
1622: edit comment on todos #2560
Conversation
|
Thank you! This was a long requested features! |
jQuery('.mainToggler-'+formHash).hide(); | ||
|
||
|
||
if (parseInt(id, 10) === 0) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
app/Domain/Comments/Templates/submodules/generalComment.sub.php
Outdated
Show resolved
Hide resolved
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>`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤯
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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>
Link to ticket
https://leantime.itkdev.dk/#/tickets/showTicket/1622
Description
Screenshot of the result
Buttons:
Editing:
Additional comments or questions
If you have any further comments or questions for the reviewer, please add them here.