Element button doesn't work in 'detail' view

Borox

Member
Hi,

I added a button in a form to create a pdf (instead of using the 'PDF' button).

Here is the JS of the button:
JavaScript:
var no_evt = document.id('travaux___id').get('value');
window.location.href ="/index.php/collaborer/evenements/travaux-non-termines/details/5/"+no_evt+"?format=pdf";

It works great in the form, but nothing happens in the detail view ( I can see the button but it doesn't seem to 'work'), it's normal?

Thanks.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top