use pandora.safeDocumentName
This commit is contained in:
parent
697fee8c60
commit
96912f14b0
1 changed files with 2 additions and 2 deletions
|
@ -196,7 +196,7 @@ pandora.ui.documentDialog = function(options) {
|
||||||
? pandora.user.ui.documents[item.id].position
|
? pandora.user.ui.documents[item.id].position
|
||||||
: 1,
|
: 1,
|
||||||
url: '/documents/' + item.id + '/'
|
url: '/documents/' + item.id + '/'
|
||||||
+ pandora.safePDFName(item.title + '.' + item.extension),
|
+ pandora.safeDocumentName(item.title) + '.' + item.extension,
|
||||||
width: dialogWidth,
|
width: dialogWidth,
|
||||||
zoom: 'fit'
|
zoom: 'fit'
|
||||||
})
|
})
|
||||||
|
@ -211,7 +211,7 @@ pandora.ui.documentDialog = function(options) {
|
||||||
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.safeDocumentName(item.title) + '.' + item.extension + '?' + item.modified),
|
||||||
imageWidth: item.dimensions[0],
|
imageWidth: item.dimensions[0],
|
||||||
width: dialogWidth
|
width: dialogWidth
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue