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

Commit button stays disabled when summary initally was > 100 chars #12072

Closed
1 of 7 tasks
ashimokawa opened this issue Jun 27, 2020 · 2 comments · Fixed by #12644
Closed
1 of 7 tasks

Commit button stays disabled when summary initally was > 100 chars #12072

ashimokawa opened this issue Jun 27, 2020 · 2 comments · Fixed by #12644
Labels

Comments

@ashimokawa
Copy link
Contributor

ashimokawa commented Jun 27, 2020

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

Description

When editing a file in the web GUI and trying to commit with a commit summary of > 100 characters, the commit button gets disabled and stays disabled even when shortening the summary afterwards. Workaround is to remove the disabled attribute from the button in the browser DOM inspector.

Originally reported here: https://codeberg.org/Codeberg/Community/issues/207

Screenshot_2020-06-27 pages

Screenshots

@stale
Copy link

stale bot commented Aug 28, 2020

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale stale bot added the issue/stale label Aug 28, 2020
zeripath added a commit to zeripath/gitea that referenced this issue Aug 29, 2020
If the user has pressed commit changes and the post has failed - do not disable
the commit changes button.

Fix go-gitea#12072

Signed-off-by: Andrew Thornton <[email protected]>
@zeripath
Copy link
Contributor

The problem lies in index.js within async function initEditor() {...}

$commitButton.prop('disabled', true);

This line disables the commit button by default. I suspect that on post with error we should just not disable this button.

@stale stale bot removed the issue/stale label Aug 29, 2020
techknowlogick pushed a commit that referenced this issue Aug 29, 2020
If the user has pressed commit changes and the post has failed - do not disable
the commit changes button.

Fix #12072

Signed-off-by: Andrew Thornton <[email protected]>
@lunny lunny added the type/bug label Aug 30, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants