diff options
author | Brice Maron <brice@bmaron.net> | 2011-11-04 23:44:41 +0100 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2011-11-04 23:44:41 +0100 |
commit | b3bb83cf58c70f71cee43405e6e15fdd7ba456fa (patch) | |
tree | b52071f79fed37552da567f687506778d72c26b6 /files/js | |
parent | e55c5c590eb47ff10f8166c943470e30584d5b0f (diff) | |
download | nextcloud-server-b3bb83cf58c70f71cee43405e6e15fdd7ba456fa.tar.gz nextcloud-server-b3bb83cf58c70f71cee43405e6e15fdd7ba456fa.zip |
Do not use mix data/attr to retrieve filename ... data() will try to convert filename to int
Diffstat (limited to 'files/js')
-rw-r--r-- | files/js/files.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/files/js/files.js b/files/js/files.js index bbc0bd31c3a..5adf67010b9 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -1,8 +1,7 @@ $(document).ready(function() { $('#fileList tr').each(function(){ //little hack to set unescape filenames in attribute - $(this).attr('data-file',unescape($(this).data('file'))); - $(this).data('file',unescape($(this).data('file'))); + $(this).attr('data-file',unescape($(this).attr('data-file'))); }); if($('tr[data-file]').length==0){ @@ -501,7 +500,7 @@ function getSelectedFiles(property){ var files=[]; elements.each(function(i,element){ var file={ - name:$(element).data('file'), + name:$(element).attr('data-file'), mime:$(element).data('mime'), type:$(element).data('type'), size:$(element).data('size'), |