invoice.js 674 B

123456789101112131415161718192021222324252627282930
  1. //[Javascript]
  2. $(function () {
  3. "use strict";
  4. $("#print1").click(function() {
  5. var mode = 'iframe'; //popup
  6. var close = mode == "popup";
  7. var options = {
  8. mode: mode,
  9. popClose: close
  10. };
  11. $("section.printableArea").printArea(options);
  12. });
  13. $("#print2").click(function() {
  14. var mode = 'iframe'; //popup
  15. var close = mode == "popup";
  16. var options = {
  17. mode: mode,
  18. popClose: close
  19. };
  20. $("section.printableArea").printArea(options);
  21. });
  22. }); // End of use strict