Only send filename to file.cache

This commit is contained in:
Ruud
2012-01-22 14:21:13 +01:00
parent 31a7611171
commit fece16c700
+3 -1
View File
@@ -17,12 +17,14 @@ var File = new Class({
createImage: function(){ createImage: function(){
var self = this; var self = this;
var file_name = self.data.path.replace(/^.*[\\\/]/, '');
self.el = new Element('div', { self.el = new Element('div', {
'class': 'type_image ' + self.type.identifier 'class': 'type_image ' + self.type.identifier
}).adopt( }).adopt(
new Element('img', { new Element('img', {
'src': Api.createUrl('file.cache') + self.data.path.substring(1) + '/' 'src': Api.createUrl('file.cache') + file_name
}) })
) )
}, },