1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-21 07:06:39 +02:00

Merge pull request #1137 from dploeger/fix-1073

Fixed sorting by rank without giving a filter
This commit is contained in:
antelle 2019-03-15 19:16:24 +01:00 committed by GitHub
commit 2b591b3384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -636,6 +636,12 @@ const EntryModel = Backbone.Model.extend({
},
getRank: function(searchString) {
if (!searchString) {
// no search string give, so rank all items the same
return 0;
}
let rank = 0;
const ranking = [