Expand/Collapse file when compare code failed #5061

Closed
opened 2025-11-02 06:12:45 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @wgqimut on GitHub (Mar 14, 2020).

  • Gitea version (or commit ref):1.11.3
  • Git version: 1.8.3.1
  • Operating system: Centos7
  • Database (use [x]):
    • PostgreSQL
    • [x ] MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • [ x] No
    • Not relevant
  • Log gist:

Description

When I expand file in the compare code view, it doesn't work, but at a review code view, the expand file is just fine.

When I inspect element, I find the web report a error "ReferenceError: Can't find variable: SimpleMDE" at the jquery.min.js:1386
...

Screenshots

Originally created by @wgqimut on GitHub (Mar 14, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref):1.11.3 - Git version: 1.8.3.1 - Operating system: Centos7 - Database (use `[x]`): - [ ] PostgreSQL - [x ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ x] No - [ ] Not relevant - Log gist: ## Description When I expand file in the compare code view, it doesn't work, but at a review code view, the expand file is just fine. When I inspect element, I find the web report a error "ReferenceError: Can't find variable: SimpleMDE" at the `jquery.min.js:1386` ... ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the topic/uitype/bug labels 2025-11-02 06:12:45 -06:00
Author
Owner

@guillep2k commented on GitHub (Apr 28, 2020):

Currently (1.12.0+dev-211-g316db0fe7) it's not working for expansion of short chunks in the review page either:

image

@guillep2k commented on GitHub (Apr 28, 2020): Currently (1.12.0+dev-211-g316db0fe7) it's not working for expansion of short chunks in the review page either: ![image](https://user-images.githubusercontent.com/18600385/80433369-19c16780-88cd-11ea-98bd-73487fdcf45c.png)
Author
Owner

@Ibmurai commented on GitHub (Jun 26, 2020):

The same problem exists in 1.12.1 - I'm not sure if the root cause is still the same.

Upon loading the page I get:

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (tribute.min.js.map, line 0)

If I then click the expandy icon I get a standard HTTP auth popup and after disbanding that I get:

[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (undefined, line 0)

On MacOS 10.15.5 / Safari 13.1.1

@Ibmurai commented on GitHub (Jun 26, 2020): The same problem exists in 1.12.1 - I'm not sure if the root cause is still the same. Upon loading the page I get: ``` [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (tribute.min.js.map, line 0) ``` If I then click the expandy icon I get a standard HTTP auth popup and after disbanding that I get: ``` [Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (undefined, line 0) ``` On MacOS 10.15.5 / Safari 13.1.1
Author
Owner

@zeripath commented on GitHub (Sep 29, 2020):

I think this is fixed already. OP please reopen if not.

@zeripath commented on GitHub (Sep 29, 2020): I think this is fixed already. OP please reopen if not.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5061