Commit 810ce6ca authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_core: if editor is pdf, always display in pdfjs, and add a maximise button

parent 261c1b58
...@@ -106,7 +106,8 @@ lockGadgetInQueue, unlockGadgetInQueue, unlockGadgetInFailedQueue*/ ...@@ -106,7 +106,8 @@ lockGadgetInQueue, unlockGadgetInQueue, unlockGadgetInFailedQueue*/
if ((gadget.state.editable && if ((gadget.state.editable &&
(editor_dict.hasOwnProperty(gadget.state.editor))) || (editor_dict.hasOwnProperty(gadget.state.editor))) ||
(!gadget.state.editable && gadget.state.editor === 'fck_editor')) { (!gadget.state.editable && gadget.state.editor === 'fck_editor') ||
(gadget.state.editor == 'pdf')) {
queue queue
.push(function () { .push(function () {
return gadget.declareGadget( return gadget.declareGadget(
...@@ -128,7 +129,8 @@ lockGadgetInQueue, unlockGadgetInQueue, unlockGadgetInFailedQueue*/ ...@@ -128,7 +129,8 @@ lockGadgetInQueue, unlockGadgetInQueue, unlockGadgetInFailedQueue*/
if ((gadget.state.editable && if ((gadget.state.editable &&
(editor_dict.hasOwnProperty(gadget.state.editor))) || (editor_dict.hasOwnProperty(gadget.state.editor))) ||
(!gadget.state.editable && gadget.state.editor === 'fck_editor')) { (!gadget.state.editable && gadget.state.editor === 'fck_editor') ||
(gadget.state.editor == 'pdf')) {
queue queue
.push(function () { .push(function () {
return gadget.getDeclaredGadget('editor'); return gadget.getDeclaredGadget('editor');
......
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