You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/web_src/js
Giteabot 1a97a84023
Fix JS error on compare page (#23551) (#23566)
Backport #23551 by @silverwind

Fix regression from https://github.com/go-gitea/gitea/pull/23271. This
code apparently runs on the compare page where there is no review button
so check for existance of both button and content.

<img width="1226" alt="Screenshot 2023-03-17 at 21 42 47"
src="https://user-images.githubusercontent.com/115237/226040001-ec097edd-d926-4c80-9962-526f9b7eff19.png">

Fixes #23562

Co-authored-by: silverwind <me@silverwind.io>
2 years ago
..
components Replace Less with CSS (#23508) 2 years ago
features Fix JS error on compare page (#23551) (#23566) 2 years ago
markup update to mermaid v10 (#23178) (#23299) 2 years ago
modules Fix `aria.js` bugs: incorrect role element problem, mobile focus problem, tippy problem (#23450) (#23486) 2 years ago
standalone Add new JS linter rules (#17699) 3 years ago
test Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2 years ago
utils Fix the show/hide methods for string selector (#23042) 2 years ago
webcomponents Introduce customized HTML elements, fix incorrect AppUrl usages in templates (#22861) 2 years ago
bootstrap.js Quick fixes monaco-editor error: "vs.editor.nullLanguage" (#21734) 2 years ago
index.js Improve AppUrl/ROOT_URL checking (#22836) 2 years ago
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 5 years ago
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 5 years ago
svg.js Fix adding of empty class name (#23352) (#23360) 2 years ago
svg.test.js Remove vitest globals (#21505) 2 years ago
utils.js Scoped labels (#22585) 2 years ago
utils.test.js Fix links for the menus in the view file page (#22795) 2 years ago