mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Use local name instead of title in filepicker if it exists
This commit is contained in:
parent
2f74324dac
commit
c77e4adf1e
@ -122,7 +122,7 @@ define([
|
||||
if (err) { return void console.error(err); }
|
||||
Object.keys(list).forEach(function (id) {
|
||||
var data = list[id];
|
||||
var name = data.title || '?';
|
||||
var name = data.filename || data.title || '?';
|
||||
if (filter && name.toLowerCase().indexOf(filter.toLowerCase()) === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user