Browse Source

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

Jose Miguel Ledon Nieblas 8 years ago
parent
commit
3eeae67dc0
1 changed files with 1 additions and 1 deletions
  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();