# HG changeset patch # User Mads Kiilerich # Date 2019-05-01 02:50:55 # Node ID a512e843cd316344bac35c3e3db84c674525b605 # Parent fd03ac0708cf53d33d0e3978979055ccad80d981 files: add missing `var` for parts diff --git a/kallithea/templates/files/files.html b/kallithea/templates/files/files.html --- a/kallithea/templates/files/files.html +++ b/kallithea/templates/files/files.html @@ -58,12 +58,11 @@ var ypjax_links = function(){ 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; }