# HG changeset patch # User Mads Kiilerich # Date 1556671855 -7200 # Node ID a512e843cd316344bac35c3e3db84c674525b605 # Parent fd03ac0708cf53d33d0e3978979055ccad80d981 files: add missing `var` for parts diff -r fd03ac0708cf -r a512e843cd31 kallithea/templates/files/files.html --- 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; }