Explorar el Código

bugfix; the new window with the sale ticket is not triggering

Jose Miguel Ledon Nieblas hace 8 años
padre
commit
3eeae67dc0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/views/sales/print_receipt.js.erb

+ 1 - 1
app/views/sales/print_receipt.js.erb

@@ -1,4 +1,4 @@
-var ticket_window = window.open('<%= pdfjs.reduced_path(file: "ticket_venta_#{@sale.id}.pdf") %>', '_blank', '');
+window.open('<%= pdfjs.reduced_path(file: "ticket_venta_#{@sale.id}.pdf") %>', '_blank', '');
 
 // ticket_window.onload = function() {
 //   ticket_window.print();