Bug #52616
closed
View icon return blank page in Firefox in view module
Added by Eric Chavaillaz over 10 years ago.
Updated over 6 years ago.
Category:
Backend User Interface
Description
Hi,
After clicking the view icon in the view module on Firefox, the page "redirect" to a blank with only a text : "[object Window]"
Thanks
To resolve this issue, we must call a jQuery function when clicking on the view button.
The function is basic, she must get the href property of the button and then use window.open.
Someting like :
// Add event to view button
$('.t3-icon-document-view').parent().on('click', function (event) {
window.open($(this).attr('href'), '_blank');
event.preventDefault();
event.stopPropagation();
});
Then we must change the button viewHelper to :
<f:be.buttons.icon uri="{url}" icon="actions-document-view" />
Thanks
- Status changed from New to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF