소스 검색

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();