Skip to content

Commit

Permalink
slighty amende the column size of the invoice list
Browse files Browse the repository at this point in the history
  • Loading branch information
ole committed Jul 1, 2020
1 parent 71ff812 commit 6e2a5a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions js/wc-invoice-pdf-admin.js
Expand Up @@ -178,11 +178,11 @@ function WCInvoicePdfAdminClass() {
var $input = $('<input type="text" style="width: 150px;" />');
$input.val(defaultValue);

var btnSave = $('<a />', { href: '#', text: 'Save' }).click(function () {
var btnSave = $('<a />', { href: 'javascript:void(0)', text: 'Save' }).click(function () {
onSaveCallback($input.val());
container.remove();
});
var btnCancel = $('<a />', { style: 'margin-left: 1em;', href: '#', text: 'Cancel' }).click(function () {
var btnCancel = $('<a />', { style: 'margin-left: 1em;', href: 'javascript:void(0)', text: 'Cancel' }).click(function () {
container.remove();
onCancelCallback();
});
Expand Down
10 changes: 4 additions & 6 deletions model/invoice-list.php
Expand Up @@ -32,11 +32,9 @@ public static function admin_header()
}
?>
<style type="text/css">
.wp-list-table .column-invoice_number { width: 150px; }
.wp-list-table .column-created { width: 160px; }
.wp-list-table .column-status { width: 230px; }
.wp-list-table .column-due_date { width: 200px; }
.wp-list-table .column-paid_date { width: 200px; }
.wp-list-table .column-invoice_number { width: 125px; }
.wp-list-table .column-due_date { width: 168px; }
.wp-list-table .column-paid_date { width: 168px; }
@media screen and (min-width: 782px) {
.sm-visible {
display: none;
Expand Down Expand Up @@ -122,7 +120,7 @@ public function column_order_id($item)
$stat = wc_get_order_statuses();
$recurr = '';
if (!empty($item->ispconfig_period)) {
$recurr = __('Payment interval', 'wc-invoice-pdf') .': ' . __(Invoice::$PERIOD[$item->ispconfig_period], 'wc-invoice-pdf');
$recurr = __('Payments', 'wc-invoice-pdf') .': ' . __(Invoice::$PERIOD[$item->ispconfig_period], 'wc-invoice-pdf');
}
return '<a href="post.php?post='.$item->order_id. '&action=edit" >#' . $item->order_id. ' ('.$stat[$item->post_status].')</a><br />' . $recurr;
}
Expand Down

0 comments on commit 6e2a5a2

Please sign in to comment.