|
|
@ -405,16 +405,8 @@ function rcube_webmail()
|
|
|
|
this.enable_command('image-scale', 'image-rotate', !!/^image\//.test(this.env.mimetype));
|
|
|
|
this.enable_command('image-scale', 'image-rotate', !!/^image\//.test(this.env.mimetype));
|
|
|
|
|
|
|
|
|
|
|
|
// Mozilla's PDF.js viewer does not allow printing from host page (#5125)
|
|
|
|
// Mozilla's PDF.js viewer does not allow printing from host page (#5125)
|
|
|
|
// to minimize user confusion we disable the Print button
|
|
|
|
// to minimize user confusion we disable the Print button on Firefox < 75
|
|
|
|
if (bw.mz && this.env.mimetype == 'application/pdf') {
|
|
|
|
this.enable_command('print', this.env.mimetype != 'application/pdf' || !bw.mz || bw.vendver >= 75);
|
|
|
|
n = 0; // there will be two onload events, first for the preload page
|
|
|
|
|
|
|
|
$(this.gui_objects.messagepartframe).on('load', function() {
|
|
|
|
|
|
|
|
if (n++) try { if (this.contentWindow.document) ref.enable_command('print', true); }
|
|
|
|
|
|
|
|
catch (e) {/* ignore */}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
this.enable_command('print', true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.env.is_message) {
|
|
|
|
if (this.env.is_message) {
|
|
|
|
this.enable_command('reply', 'reply-all', 'edit', 'viewsource',
|
|
|
|
this.enable_command('reply', 'reply-all', 'edit', 'viewsource',
|
|
|
|