fileviewer/external/zarafa-changes.txt

13 lines
520 B
Plaintext
Raw Permalink Normal View History

2015-06-02 21:40:54 +02:00
Changes to ViewerJS:
- <div id = "documentName" style="display:none;"></div> // hide the document name as it will be visible in the panel title
- this.download = function () {
var documentUrl = url.split('#')[0];
documentUrl += '&contentDispositionType=attachment';
window.open(documentUrl, '_parent');
};
(in the compressed version it is: window.open(a+"&contentDispositionType=attachment","_parent"))
// change the download url... otherwise the file will be shown inline