Roundcube Community Forum

Release Support => Requests => Topic started by: johnwayne on August 16, 2016, 01:48:56 AM

Title: ability to code edit the show/open link behavior for attachments like keystroke
Post by: johnwayne on August 16, 2016, 01:48:56 AM
I would like to be able to edit the code to change the behavior of the show/open links for an attachment. I would rather it operate like a CTRL+SHIFT click instead of opening the image previewer. Or a third option could be added next to the inline thumbnail and the attachment dropdown for "open in new browser tab". The primary issue I am attempting to address is large pixel area jpgs not having a zoom in/out feature in the attachment previewer.
Title: Re: ability to code edit the show/open link behavior for attachments like keystroke
Post by: johnwayne on October 19, 2016, 03:08:59 AM
solved!
added this to skins/larry/templates/messagepart.html

this in the head
Code: [Select]
window.onload = function() {
var url2 = document.getElementById('messagepartframe').src;
$('#Fit').on('click',function(){
   var tabOrWindow = window.open(url2, '_self');
   tabOrWindow.focus();
});};

about line 65
Code: [Select]
<input style="vertical-align:top; height:3.7em;" type="button" id="Fit" value="Fit to Screen" alt="Fit to Screen"/>
i also (not shown) acheived the zoom in/out functions, but cant seem to reign in the iframe movement.

btw, rc 1.1.6