RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > SVN Releases > Issues & Bugs

For more information about the ads and why they're here, please see the FAQ
Reply
  #1  
Old 11-04-2006, 01:42 PM
Registered User
 
Join Date: Jul 2006
Posts: 51
Downloads: 0
Uploads: 0
Default opening pdf attachments bug?

i'm using version 360, i noticed that clicking the pdf attachment will just open another window/tab of the inbox, i need to right click the attachment and use the open in another tab shortcut of the browser just to be able to see the pdf attachment, anybody experienced this bug? i'm using firefox 2.0
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 11-04-2006, 04:01 PM
Registered User
 
Join Date: Aug 2006
Posts: 17
Downloads: 0
Uploads: 0
Default Re: opening pdf attachments bug?

Hi there,
this happens not only with PDF, but with TXT, image files etc.
It has something to do with the "onclick" js action specified in show.inc (program/steps/mail/show.inc) where attachments list is generated and displayed.
What I did to solve the situation was to create a fixed url containing index.php in front of ?_task... etc and remove the onclick attribute of the <a> tag. I did also add target="_blank", so the attachment is opened in new window (or tab).
Dont forget to comment the relevant strings in the sprintf() function creating the <a href...> too

Could someone please explain whats all this JS there about, with MIME types etc ? So far the browsers seem intelligent enough to handle all attachments pretty well without the JS?

PS I'm at home right now and feel quite lazy, if you can't make it with these directions (after trying ofcourse ) I could paste some text here too...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 11-04-2006, 06:15 PM
Registered User
 
Join Date: Nov 2006
Posts: 2
Downloads: 0
Uploads: 0
Default Re: opening pdf attachments bug?

Change app.js
line 635 replace
Code:
     this.attachment_win = window.open(this.env.comm_path+'&_action=get'+url+'&_frame=1', 'rcubemailattachment');
with
Code:
     this.attachment_win = window.open(this.env.comm_path+'&_action=get&'+qstring+'&_frame=1', 'rcubemailattachment');
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 08:21 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community