0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-03 00:47:33 +01:00
gitea/templates/repo/diff
Giteabot a4f977e00b
Fix the wrong line number in the diff view page when expanded twice. (#31431) (#31440)
Backport #31431 by @charles7668

close #31149

The problem is caused by the `data-query=` string affecting the parsing
of the `last_left` parameter. When the page is first rendered,
`data-query=` does not exist. However, after clicking expand, the
returned HTML contains this string, causing the line numbers to start
from 1 upon expanding a second time.

before fix

![圖片](https://github.com/go-gitea/gitea/assets/30816317/36842bde-cc30-43ba-91b0-c60a50a6dc0f)

after fix

![圖片](https://github.com/go-gitea/gitea/assets/30816317/b73d7e40-ec01-48ae-9992-09c19ee477ad)

Co-authored-by: charles <30816317+charles7668@users.noreply.github.com>
2024-06-20 20:33:51 +00:00
..
blob_excerpt.tmpl Fix the wrong line number in the diff view page when expanded twice. (#31431) (#31440) 2024-06-20 20:33:51 +00:00
box.tmpl Improve mobile review ui (#31091) (#31136) 2024-05-28 14:10:01 +00:00
comment_form_datahandler.tmpl
comment_form.tmpl Add svg linter and fix incorrect svgs (#30086) 2024-03-26 11:19:15 +00:00
comments.tmpl Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) 2024-04-14 18:44:11 +08:00
compare.tmpl Remove fomantic button module (#30475) 2024-04-14 17:53:52 +00:00
conversation_outdated.tmpl
conversation.tmpl Improve mobile review ui (#31091) (#31136) 2024-05-28 14:10:01 +00:00
csv_diff.tmpl
escape_title.tmpl
image_diff.tmpl
new_comment.tmpl
new_review.tmpl Prevent allow/reject reviews on merged/closed PRs (#30686) 2024-04-27 11:55:03 +00:00
options_dropdown.tmpl
section_code.tmpl
section_split.tmpl Use vertical layout for multiple code expander buttons (#31122) (#31152) 2024-05-29 09:06:34 +02:00
section_unified.tmpl Use vertical layout for multiple code expander buttons (#31122) (#31152) 2024-05-29 09:06:34 +02:00
stats.tmpl
whitespace_dropdown.tmpl