Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. initInvoiceImportProductsDialog: function () {
  2.         this.invoice_import_dialog = $('#invoice-import-products-dialog');
  3.         this.invoice_import_dialog.dialog({
  4.             autoOpen: false,
  5.             modal: true,
  6.             resizable: false,
  7.             width: 500,
  8.             buttons: [
  9.                 {
  10.                     text: "Importovat",
  11.                     click: function () {
  12.                         $(this).find('form').submit();
  13.                     }
  14.                 },
  15.                 {
  16.                     text: "Zavřít",
  17.                     click: function () {
  18.                         $(this).dialog("close");
  19.                     }
  20.                 },
  21.             ]
  22.         });
  23.  
  24.         this.invoice_import_button = $('#import-products-button');
  25.         this.invoice_import_button.click(function (event) {
  26.             event.preventDefault();
  27.             InvoiceEdit.invoice_item_edit_dialog.dialog('open');
  28.         });
  29.     },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement