-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix attachments list in edit comment #13036
Fix attachments list in edit comment #13036
Conversation
go-gitea#11141 broke the appearance of dropzone attachments when editting comments causing poorly updating lists. This PR fixes this. Fix go-gitea#12573 Signed-off-by: Andrew Thornton <art27@cantab.net>
could be backported to 1.12 |
Codecov Report
@@ Coverage Diff @@
## master #13036 +/- ##
==========================================
- Coverage 42.62% 42.61% -0.01%
==========================================
Files 672 672
Lines 73785 73795 +10
==========================================
- Hits 31448 31447 -1
- Misses 37247 37256 +9
- Partials 5090 5092 +2
Continue to review full report at Codecov.
|
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Codecov Report
@@ Coverage Diff @@
## master #13036 +/- ##
==========================================
+ Coverage 42.60% 42.62% +0.01%
==========================================
Files 673 673
Lines 73862 73868 +6
==========================================
+ Hits 31470 31483 +13
Misses 37275 37275
+ Partials 5117 5110 -7
Continue to review full report at Codecov.
|
@6543 That's odd... are you sure your javascript is up to date? |
Yes |
What does yes mean? |
I have tested the this patch on a fresh browser so there should be no old java in the cache ... |
Check the DOM and tell me where those nodes are and what they are contained in. |
…ub.com:zeripath/gitea into fix-12573-fix-attachments-list-in-edit-comment
I've managed to reproduce ... give me a few mins. |
Signed-off-by: Andrew Thornton <art27@cantab.net>
Now there's one other weird thing this PR doesn't sort which is handling what happens when you remove an attachment from an empty comment... That appears not to happen unless you add some content at the same time. (which is now properly handled.) |
…ntent and no attachments properly Signed-off-by: Andrew Thornton <art27@cantab.net>
OK @6543 ready again. |
wow - thanks!! |
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.
🎉
This comment has been minimized.
This comment has been minimized.
Backport go-gitea#13036 go-gitea#11141 broke the appearance of dropzone attachments when editting comments causing poorly updating lists. This PR fixes this. Fix go-gitea#12583 Signed-off-by: Andrew Thornton art27@cantab.net
#11141 broke the appearance of dropzone attachments when editting
comments causing poorly updating lists.
This PR fixes this.
Fix #12583
Signed-off-by: Andrew Thornton art27@cantab.net