Commit c54c4bc0 authored by Jérome Perrin's avatar Jérome Perrin

dms: disable open button in PDF viewer

It does not make any sense to open PDF files from this gadget.

Also remove duplicate line with documentProperties
parent 407b7727
Pipeline #22300 failed with stage
in 0 seconds
......@@ -33,8 +33,8 @@
// hide some buttons that do not make sense for us
gadget.props.element.querySelector('#viewBookmark').hidden = true;
gadget.props.element.querySelector('#documentProperties').hidden = true;
gadget.props.element.querySelector('#documentProperties').hidden = true;
gadget.props.element.querySelector('#download').hidden = true;
gadget.props.element.querySelector('#openFile').hidden = true;
});
})
.declareMethod("getContent", function () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment