-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[UI] Add namespace to global click event , index.js #15687
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
Comments
Pop up a PR if you can. I haven't completely understood what the problem is from your issue report. It would be good if you could give us some clear steps to reproduce the issue using try.gitea.io telling us what you expected instead. Is it something like:
|
yeah, exact |
I think the behavior can be fixed by a Then we do not need to add event namespaces one by one. I will close this issue and PR, feel free to feedback. |
Uh oh!
There was an error while loading. Please reload this page.
gitea/web_src/js/index.js
Line 688 in 5811e16
This block of code performaces different UI experience with Gitlab issue comment.
When I got focus on certain comment, it gets highlight and hash changed ok.
And when click blank place in the page, the hash changes to empty.
However, I want to keep the same experience as Gitlab done: keep the #hash .
I can .off() the global document click event, if the code provides events namespace, and I only have to add custom code in foot.tmpl instead of replace and modify the whole index.js.
eg: index.js
eg:custom,foot.tmpl
The text was updated successfully, but these errors were encountered: