Commit 6baf925a authored by Leo Iannacone's avatar Leo Iannacone

set correctly file name for files

parent 40d4005b
...@@ -47,7 +47,7 @@ function get_files_list_from_pacakge(package_path, callback) { ...@@ -47,7 +47,7 @@ function get_files_list_from_pacakge(package_path, callback) {
package_info.archives.push(file) package_info.archives.push(file)
} }
else { else {
file.label = file.extension file.name = file.extension
package_info.files.push(file) package_info.files.push(file)
} }
}); });
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
$('#files').html(''); $('#files').html('');
data.package.files.forEach(function(f){ data.package.files.forEach(function(f){
p = data.package p = data.package
$('#files').append('<li><a href="#' + data.distribution.name + '/' + p.name + '/'+ p.version + '/' + f.name + '">' + f.label + '</a></li>') $('#files').append('<li><a href="#' + data.distribution.name + '/' + p.name + '/'+ p.version + '/' + f.name + '">' + f.name + '</a></li>')
}) })
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment