Author Topic: ability to code edit the show/open link behavior for attachments like keystroke  (Read 4243 times)

Offline johnwayne

  • Jr. Member
  • **
  • Posts: 21
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.

Offline johnwayne

  • Jr. Member
  • **
  • Posts: 21
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