Pārlūkot izejas kodu

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

Jose Miguel Ledon Nieblas 8 gadi atpakaļ
vecāks
revīzija
3eeae67dc0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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();