Ticket #80 (new defect)

Opened 8 months ago

Last modified 8 months ago

invoice pdf should open in new window

Reported by: richcowan Owned by: christian
Priority: minor Milestone: 0.5
Component: other Version:
Keywords: Cc: florian

Description

You lose the phpaga menu links when the pdf opens in the same window. Then it is confusing what to do next.

I was able to fix this by editing the bill.tpl.html file, line 22, to the following:

<form action="bill_pdf.php" method="get" target="_blank" onsubmit="hideElement('printbill');">

Attachments

Change History

Changed 8 months ago by richcowan

  • owner changed from florian to christian

I now see that this was previously addressed in ticket #62, hxxp://phpaga.net/ticket/62

However ticket #62 does not specify what the actual change was.

After thinking about this I think it makes sense to open in a new window if Javascript is off, as user can always save to disk later.

However the default behavior (javascript on) could be a nice dialog box similar to Firefox when you click on a word doc link:

Generating Invoice

Invoice generated for [companyname]. What would you like to do with this PDF Document?

[*] Open in a new window [ ] Save to disk

What do you think?

Changed 8 months ago by richcowan

also a modification is needed to bills.tpl.php, line 51. Here is an example of how to make it open the pdf in a new browser window:

<form action="bill_pdf.php" method="get" onsubmit="hideElement('printbill');" target="_blank">

Again this improves the navigation for the site.

Changed 8 months ago by richcowan

  • cc florian added

Add/Change #80 (invoice pdf should open in new window)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
The owner will change to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.