Compare commits

..

2 commits

Author SHA1 Message Date
j
007b9394c7 fix image urls 2019-11-29 20:45:10 +01:00
j
a5e231f43c fix drag and drop of videos 2019-11-20 16:34:17 +01:00
2 changed files with 5 additions and 2 deletions

View file

@ -80,7 +80,7 @@ pandora.ui.document = function() {
imageHeight: item.dimensions[1], imageHeight: item.dimensions[1],
imagePreviewURL: pandora.getMediaURL('/documents/' + item.id + '/256p.jpg?' + item.modified), imagePreviewURL: pandora.getMediaURL('/documents/' + item.id + '/256p.jpg?' + item.modified),
imageURL: pandora.getMediaURL('/documents/' + item.id + '/' imageURL: pandora.getMediaURL('/documents/' + item.id + '/'
+ item.title + '.' + item.extension + '?' + item.modified), + pandora.safePDFName(item.title) + '.' + item.extension + '?' + item.modified),
imageWidth: item.dimensions[0], imageWidth: item.dimensions[0],
width: that.width() width: that.width()
}).css({ }).css({

View file

@ -424,7 +424,10 @@ pandora.uploadDroppedFiles = function(files) {
} }
}).open(); }).open();
} else { } else {
pandora.ui.addItemDialog({files: files}).open() pandora.ui.addItemDialog({
files: files,
selected: 'upload'
}).open()
} }
}; };