Mercurial > kallithea
diff kallithea/templates/summary/summary.html @ 8252:c7e67b87fd1b
js: cleanup to use named functions instead of vars with anonymous functions
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 16 Feb 2020 02:47:09 +0100 |
parents | fb9550946c26 |
children | d6efaa91e967 |
line wrap: on
line diff
--- a/kallithea/templates/summary/summary.html Mon Feb 17 17:49:45 2020 +0100 +++ b/kallithea/templates/summary/summary.html Sun Feb 16 02:47:09 2020 +0100 @@ -28,7 +28,7 @@ <link href="${h.url('rss_feed_home',repo_name=c.db_repo.repo_name,api_key=request.authuser.api_key)}" rel="alternate" title="${_('%s RSS feed') % c.repo_name}" type="application/rss+xml" /> <script>'use strict'; - redirect_hash_branch = function(){ + function redirect_hash_branch(){ var branch = window.location.hash.replace(/^#(.*)/, '$1'); if (branch){ window.location = ${h.js(h.url('changelog_home',repo_name=c.repo_name,branch='__BRANCH__'))}