-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from wpovernight/2.0-rewrite
2.0 rewrite
- Loading branch information
Showing
630 changed files
with
207,706 additions
and
93,728 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* Order list buttons: */ | ||
.type-shop_order .column-order_actions a.button.wpo_wcpdf img { | ||
width: 16px; | ||
} | ||
|
||
.widefat .column-pdf_invoice_number { | ||
width: 110px; | ||
} | ||
|
||
@media screen and (max-width: 782px) { | ||
.wp-list-table .column-pdf_invoice_number, .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-pdf_invoice_number:not(.check-column) { | ||
display: none; | ||
} | ||
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-pdf_invoice_number { | ||
padding: 3px 8px 3px 35% | ||
} | ||
} | ||
|
||
#wpo_wcpdf-data-input-box h4 { | ||
font-size: 14px; | ||
line-height: 1.4; | ||
margin: 1.5em 0 0 0; | ||
} | ||
|
||
#wpo_wcpdf-data-input-box p { | ||
margin: 0.5em 0; | ||
} | ||
|
||
#wpo_wcpdf-data-input-box .form-field input { | ||
width: auto; | ||
} | ||
|
||
.wcpdf-data-fields .read-only { | ||
height:auto; | ||
display:block; | ||
} | ||
|
||
.wcpdf-data-fields .editable { | ||
height:auto; | ||
display:none; | ||
} | ||
|
||
#set-invoice-date-number { | ||
margin:15px 0px!important; | ||
} | ||
|
||
#edit-invoice-date-number { | ||
margin-left:20px!important; | ||
} | ||
|
||
#edit-invoice-date-number { | ||
opacity:0.5; | ||
} | ||
#edit-invoice-date-number:hover { | ||
opacity:1; | ||
cursor:pointer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
jQuery( function( $ ) { | ||
$('.edit-next-number').click( function( event ) { | ||
// enable input & show save button | ||
$( this ).hide(); | ||
$( this ).siblings( 'input' ).prop('disabled', false); | ||
$( this ).siblings( '.save-next-number.button').show(); | ||
}); | ||
|
||
$('.save-next-number').click( function( event ) { | ||
$input = $( this ).siblings( 'input' ); | ||
$input.addClass('ajax-waiting'); | ||
var data = { | ||
security: $input.data('nonce'), | ||
action: "wpo_wcpdf_set_next_number", | ||
store: $input.data('store'), | ||
number: $input.val(), | ||
}; | ||
|
||
xhr = $.ajax({ | ||
type: 'POST', | ||
url: wpo_wcpdf_admin.ajaxurl, | ||
data: data, | ||
success: function( response ) { | ||
$input.removeClass('ajax-waiting'); | ||
$input.siblings( '.edit-next-number' ).show(); | ||
$input.prop('disabled', 'disabled'); | ||
$input.siblings( '.save-next-number.button').hide(); | ||
} | ||
}); | ||
}); | ||
}); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"require": { | ||
"php": ">=5.3.0", | ||
"dompdf/dompdf": "*", | ||
"phenx/php-svg-lib": "dev-master as 0.2" | ||
} | ||
} |
Oops, something went wrong.