Mercurial > kallithea
changeset 7749:a512e843cd31
files: add missing `var` for parts
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 01 May 2019 02:50:55 +0200 |
parents | fd03ac0708cf |
children | f2900ebaac0d |
files | kallithea/templates/files/files.html |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/templates/files/files.html Sun Jun 30 13:03:35 2019 +0200 +++ b/kallithea/templates/files/files.html Wed May 01 02:50:55 2019 +0200 @@ -58,12 +58,11 @@ return true; } - var el = e.currentTarget; - var url = el.href; + var url = e.currentTarget.href; //extract rev and the f_path from url. - parts = url.split(_repo_files_url); - if(parts.length != 2){ + var parts = url.split(_repo_files_url); + if (parts.length != 2) { return false; }