Mercurial > kallithea
changeset 6436:b6eba3ea7af9
datatables: use more robust filter function for filtering repository names
This way it does not depend on a class attribute and it is more clear what it
does.
author | domruf <dominikruf@gmail.com> |
---|---|
date | Thu, 22 Dec 2016 13:00:54 +0100 |
parents | 94a9ce213964 |
children | e2739d57f153 |
files | kallithea/model/repo.py kallithea/templates/index_base.html |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/model/repo.py Wed Jan 11 22:23:35 2017 +0100 +++ b/kallithea/model/repo.py Thu Dec 22 13:00:54 2016 +0100 @@ -223,6 +223,7 @@ cs_cache = repo.changeset_cache row = { "raw_name": repo.repo_name, + "just_name": repo.just_name, "name": repo_lnk(repo.repo_name, repo.repo_type, repo.repo_state, repo.private, repo.fork), "last_change_iso": repo.last_db_change.isoformat(),
--- a/kallithea/templates/index_base.html Wed Jan 11 22:23:35 2017 +0100 +++ b/kallithea/templates/index_base.html Thu Dec 22 13:00:54 2016 +0100 @@ -89,8 +89,8 @@ columns: [ {data: "raw_name", visible: false, searchable: false}, {title: "${_('Repository')}", data: "name", orderData: 1, render: { - filter: function(data) { - return $(data).find(".dt_repo_name").text(); + filter: function(data, type, row, meta) { + return row.just_name; } }}, {data: "desc", title: "${_('Description')}", searchable: false},