mirror of
https://github.com/keeweb/keeweb.git
synced 2024-06-27 07:45:08 +02:00
Merge pull request #1137 from dploeger/fix-1073
Fixed sorting by rank without giving a filter
This commit is contained in:
commit
2b591b3384
|
@ -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 = [
|
||||
|
|
Loading…
Reference in New Issue
Block a user