From c77e4adf1e2d66c2b9665f03fa485f37c239c6f3 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 16 Jan 2018 14:32:49 +0100 Subject: [PATCH] Use local name instead of title in filepicker if it exists --- www/filepicker/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/filepicker/inner.js b/www/filepicker/inner.js index 1409ad556..91bca36c8 100644 --- a/www/filepicker/inner.js +++ b/www/filepicker/inner.js @@ -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; }