Skip to content
Snippets Groups Projects
Commit b3bb83cf authored by Brice Maron's avatar Brice Maron
Browse files

Do not use mix data/attr to retrieve filename ... data() will try to convert filename to int

parent e55c5c59
Branches
No related tags found
No related merge requests found
$(document).ready(function() { $(document).ready(function() {
$('#fileList tr').each(function(){ $('#fileList tr').each(function(){
//little hack to set unescape filenames in attribute //little hack to set unescape filenames in attribute
$(this).attr('data-file',unescape($(this).data('file'))); $(this).attr('data-file',unescape($(this).attr('data-file')));
$(this).data('file',unescape($(this).data('file')));
}); });
if($('tr[data-file]').length==0){ if($('tr[data-file]').length==0){
...@@ -501,7 +500,7 @@ function getSelectedFiles(property){ ...@@ -501,7 +500,7 @@ function getSelectedFiles(property){
var files=[]; var files=[];
elements.each(function(i,element){ elements.each(function(i,element){
var file={ var file={
name:$(element).data('file'), name:$(element).attr('data-file'),
mime:$(element).data('mime'), mime:$(element).data('mime'),
type:$(element).data('type'), type:$(element).data('type'),
size:$(element).data('size'), size:$(element).data('size'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment