Customers attached  pictures to ticket, but is not convenient to browse. The image when you view opens in the same window and to return to the interface you need to press the browser Back button. Can I make a preview images and create at the opening pop-up window with navigation (previous, next, print, reduce, increase, close)?

@[deleted] you questions relates to another post:http://forum.osticket.com/d/discussion//open-attachments-in-new-tab-windowand in version 1.9.8.1 the line you want is line #660 I have inlcuded how my line #660 is and i can say it works perfectly.#original$str.=sprintf('<a class="Icon file no-pjax" href="%s" target="%s">%s</a>%s&nbsp;%s',#modified$str.=sprintf('<a class="Icon file no-pjax" href="%s" target="_blank" target="%s">%s</a>%s&nbsp;%s',

Thank you. It works! It remains to solve the problem with a preview image (image thumbnail).Can this be done?

@[deleted]@[deleted]015Really like that idea to open attachments in a different tab/window. Did you ever think of making a pull request over at github for this little improvement? ;)

6 days later

@[deleted] I actually submitted it here:https://github.com/osTicket/osTicket-1.8/issues/2164

17 days later

in this issue a made the trick and solved:https://github.com/osTicket/osTicket-1.8/issues/2164#issuecomment-119995132added a simple code and now opens in popup window

2 months later

Could it be that this is not working on Version 1.10 RC2?I am using firefox. When inspecting the code it says the correct targeting, but it still opens in the same window...

The patch does not work in version 1.9.12 and pop-up window is not working. Strange, but it seems the developer has decided to ignore this problem.How to make a pop-up window for file attachments in 1.9.12?

This what I have in my code to open the attachment in a new window. Seems to work for  Version v1.9.8.1

include\class.thread.php line 660

 

$str.=sprintf('<a class="Icon file no-pjax" href="%s" target="_blank">%s</a>%s&nbsp;%s',

Version v1.9.12

include\class.thread.php - line 656

8 months later

Please add this feature!!! thanks

Write a Reply...