[FIX] web: do not hide button in pdf viewer in some cases

The pdf viewer uses an external library to display a pdf file.  This
library displays a few controls, such as a 'Download' button.  However,
this button is sometimes displayed in the top bar, sometimes in the top
right dropdown menu (depending on the size of the widget).

For some unknown reason, the pdf viewer widget disabled the download button.
But this was inconsistent: the download button was only hidden when it
was in the tob bar, and not in the dropdown menu.  With this commit, we
simply remove this behaviour.
This commit is contained in:
Géry Debongnie
2018-05-28 14:33:07 +02:00
parent aa54457fe8
commit d9c035ae42
@@ -1305,9 +1305,6 @@ var FieldPdfViewer = FieldBinaryFile.extend({
* @param {DOMElement} iframe
*/
_disableButtons: function (iframe) {
if (this.mode === 'readonly') {
$(iframe).contents().find('button#download').hide();
}
$(iframe).contents().find('button#openFile').hide();
},
/**