Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- initInvoiceImportProductsDialog: function () {
- this.invoice_import_dialog = $('#invoice-import-products-dialog');
- this.invoice_import_dialog.dialog({
- autoOpen: false,
- modal: true,
- resizable: false,
- width: 500,
- buttons: [
- {
- text: "Importovat",
- click: function () {
- $(this).find('form').submit();
- }
- },
- {
- text: "Zavřít",
- click: function () {
- $(this).dialog("close");
- }
- },
- ]
- });
- this.invoice_import_button = $('#import-products-button');
- this.invoice_import_button.click(function (event) {
- event.preventDefault();
- InvoiceEdit.invoice_item_edit_dialog.dialog('open');
- });
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement