Enable Print button in WOPI editor
This commit is contained in:
parent
69a01be99f
commit
812df73451
2 changed files with 7 additions and 5 deletions
|
@ -1292,7 +1292,7 @@ function document_editor_init()
|
|||
{
|
||||
var info = rcmail.env.file_data;
|
||||
|
||||
rcmail.enable_command('document-export', true);
|
||||
rcmail.enable_command('document-export', 'document-print', true);
|
||||
|
||||
if (info && info.session && info.session.is_owner)
|
||||
rcmail.enable_command('document-close', 'document-editors', true);
|
||||
|
@ -1328,6 +1328,11 @@ rcube_webmail.prototype.document_export = function(type)
|
|||
document_editor.export(type || 'odt');
|
||||
};
|
||||
|
||||
rcube_webmail.prototype.document_print = function()
|
||||
{
|
||||
document_editor.print();
|
||||
};
|
||||
|
||||
rcube_webmail.prototype.document_editors = function()
|
||||
{
|
||||
kolab_files_editors_dialog();
|
||||
|
|
|
@ -23,11 +23,8 @@
|
|||
<roundcube:button command="document-export" type="link" class="button export disabled" classAct="button export" classSel="button export pressed" label="kolab_files.get" title="kolab_files.getfile" />
|
||||
<a href="#export" class="dropbuttontip" id="exportmenulink" onclick="UI.toggle_popup('exportmenu',event);return false" aria-haspopup="true" aria-expanded="false" aria-owns="exportmenu-menu" tabindex="0">Export options</a>
|
||||
</span>
|
||||
<roundcube:if condition="env:editor_type != 'wopi'" />
|
||||
<!--
|
||||
<roundcube:if condition="env:editor_type == 'wopi'" />
|
||||
<roundcube:button command="document-print" type="link" class="button print disabled" classAct="button print" classSel="button print pressed" label="print" title="kolab_files.printfile" />
|
||||
<span class="spacer"></span>
|
||||
-->
|
||||
<roundcube:endif />
|
||||
<roundcube:button command="document-save" type="link" class="button save disabled" classAct="button save" classSel="button save pressed" label="kolab_files.save" title="kolab_files.savefile" />
|
||||
<roundcube:if condition="env:editor_type != 'wopi'" />
|
||||
|
|
Loading…
Add table
Reference in a new issue