Use local name instead of title in filepicker if it exists

pull/1/head
yflory 7 years ago
parent 2f74324dac
commit c77e4adf1e

@ -122,7 +122,7 @@ define([
if (err) { return void console.error(err); } if (err) { return void console.error(err); }
Object.keys(list).forEach(function (id) { Object.keys(list).forEach(function (id) {
var data = list[id]; var data = list[id];
var name = data.title || '?'; var name = data.filename || data.title || '?';
if (filter && name.toLowerCase().indexOf(filter.toLowerCase()) === -1) { if (filter && name.toLowerCase().indexOf(filter.toLowerCase()) === -1) {
return; return;
} }

Loading…
Cancel
Save