]> source.dussan.org Git - gitea.git/commit
Fix syntax highlight initialization (#7617) (#7626)
authorsilverwind <me@silverwind.io>
Fri, 26 Jul 2019 06:12:35 +0000 (08:12 +0200)
committerzeripath <art27@cantab.net>
Fri, 26 Jul 2019 06:12:35 +0000 (07:12 +0100)
commit650fdceb5a2d5ab3057a5193467289e15dfa44e8
tree02d52a57842b2d41586e9bf3f190b651d421a123
parent4c69e158e51f2a9e3cdb7cfbebcccc74cd7fd88a
Fix syntax highlight initialization (#7617) (#7626)

* Fix syntax highlight initialization

Previously hljs was initialized via a function that relies on the
DOMContentLoaded event, registerd after jQuery's 'ready' event. I assume
that with the recent jQuery update, DOMContentLoaded may not be
guaranteed to fire after 'ready'. Fixed this via vanilla JS initalization.

Fixes: https://github.com/go-gitea/gitea/issues/7559
* semicolon
public/js/index.js