Lines 142-148
Link Here
|
142 |
<input type="hidden" name="invoiceid" value="[% invoiceid | html %]" /> |
142 |
<input type="hidden" name="invoiceid" value="[% invoiceid | html %]" /> |
143 |
<input type="submit" class="btn btn-primary" value="Save" /> |
143 |
<input type="submit" class="btn btn-primary" value="Save" /> |
144 |
[% IF CAN_user_acquisition_delete_invoices AND NOT orders_loop.size %] |
144 |
[% IF CAN_user_acquisition_delete_invoices AND NOT orders_loop.size %] |
145 |
<a href="invoice.pl?op=delete&invoiceid=[% invoiceid | uri %]" id="delete">Delete</a> |
145 |
<a class="submit-form-link" href="#" data-action="invoice.pl" data-method="post" data-op="cud-delete" data-invoiceid="[% invoiceid | html %]" data-confirmation-msg="[% t('Are you sure you want to delete this invoice?') | html %]" id="delete">Delete</a> |
146 |
[% END %] |
146 |
[% END %] |
147 |
</fieldset> |
147 |
</fieldset> |
148 |
[% END %] |
148 |
[% END %] |
Lines 561-569
Link Here
|
561 |
} |
561 |
} |
562 |
|
562 |
|
563 |
$(document).ready(function() { |
563 |
$(document).ready(function() { |
564 |
$("#delete").click(function(){ |
|
|
565 |
return confirmDelete(_("Are you sure you want to delete this invoice?")); |
566 |
}); |
567 |
$("#orderst").dataTable($.extend(true, {}, dataTablesDefaults, { |
564 |
$("#orderst").dataTable($.extend(true, {}, dataTablesDefaults, { |
568 |
"info": false, |
565 |
"info": false, |
569 |
"paging": false, |
566 |
"paging": false, |
570 |
- |
|
|