From 847ad6c40b951cbd3d187e3c72cb55dc3acd6951 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20M=C3=BCller?= Date: Mon, 18 Nov 2013 15:03:22 +0100 Subject: [PATCH] fixing js error in case the file name is a number --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index fc1ebab3af7..7863903fa19 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -382,7 +382,7 @@ var FileList={ }, filter:function(query) { $('#fileList tr:not(.summary)').each(function(i,e) { - if ($(e).data('file').toLowerCase().indexOf(query.toLowerCase()) !== -1) { + if ($(e).data('file').toString().toLowerCase().indexOf(query.toLowerCase()) !== -1) { $(e).addClass("searchresult"); } else { $(e).removeClass("searchresult"); -- 2.39.5