Mercurial > kallithea
changeset 5470:4b9370a01c4d
compare: fix 404 ("undefined" ref type) error
The changeset selector would create selector entries without the
'type' attribute when running in "cached" mode, causing 404 errors.
author | Søren Løvborg <sorenl@unity3d.com> |
---|---|
date | Mon, 31 Aug 2015 17:42:56 +0200 |
parents | 047ac9eefb71 |
children | a041321d2aa1 |
files | kallithea/templates/compare/compare_diff.html |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/templates/compare/compare_diff.html Mon Aug 31 17:42:56 2015 +0200 +++ b/kallithea/templates/compare/compare_diff.html Mon Aug 31 17:42:56 2015 +0200 @@ -115,7 +115,7 @@ var children = []; $.each(this.children, function(){ if(query.term.length == 0 || this.text.toUpperCase().indexOf(query.term.toUpperCase()) >= 0 ){ - children.push({'id': this.id, 'text': this.text}); + children.push(this); } }); data.results.push({'text': section, 'children': children});