aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-11-18 15:03:22 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2013-11-18 15:03:22 +0100
commit847ad6c40b951cbd3d187e3c72cb55dc3acd6951 (patch)
tree0267d75b9e88d3d51488789d372a1967eed5c610
parentcb656c8321e71812809044c19525bf0b9a639b2c (diff)
downloadnextcloud-server-847ad6c40b951cbd3d187e3c72cb55dc3acd6951.tar.gz
nextcloud-server-847ad6c40b951cbd3d187e3c72cb55dc3acd6951.zip
fixing js error in case the file name is a number
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
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");