Vn.Invoices = new Class ({ Extends: Vn.Form ,onDownloadClick: function (column, invoiceId) { if (!invoiceId) return; var url = 'rest.php?method=dms/invoice&invoice='+ invoiceId; window.open (url, '_blank'); } });