Преглед на файлове

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

Jose Miguel Ledon Nieblas преди 8 години
родител
ревизия
3eeae67dc0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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();