Skip to content

Commit 8a1cee3

Browse files
committed
revert the bulk action fix
reverting the bulk action issue #298 . also, remove the mobile logo code
1 parent 9603574 commit 8a1cee3

File tree

4 files changed

+6
-33
lines changed

4 files changed

+6
-33
lines changed

assets/js/admin.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ jQuery(document).ready(function($) {
5555
/*
5656
* Bulk actions print button in the confirm message
5757
*/
58-
$('#woocommerce-delivery-notes-bulk-print-button').on('click', function(event) {
59-
event.preventDefault();
60-
var printUrl = $(this).attr('href');
61-
window.location.href = printUrl; // Open print URL in the same window.
62-
});
58+
$(window).on('load', function(event) {
59+
var bulkButton = $('#woocommerce-delivery-notes-bulk-print-button');
60+
if( bulkButton.length > 0 ) {
61+
bulkButton.trigger('click');
62+
}
63+
});
6364

6465
/*
6566
* Settings

includes/wcdn-template-functions.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ function wcdn_company_logo() {
239239
?>
240240
<div class="logo">
241241
<img src="<?php echo esc_url( $attachment_src[0] ); ?>" class="desktop" width="<?php echo esc_attr( round( $attachment_src[1] / 4 ) ); ?>" height="<?php echo esc_attr( round( $attachment_src[2] / 4 ) ); ?>" alt="<?php echo esc_attr( $company ); ?>" />
242-
<img src="<?php echo esc_url( $attachment_src[0] ); ?>" class="mobile" width="<?php echo esc_attr( round( $attachment_src[1] / 4 ) ); ?>" height="<?php echo esc_attr( round( $attachment_src[2] / 4 ) ); ?>" alt="<?php echo esc_attr( $company ); ?>" />
243242
</div>
244243
<?php
245244
}

templates/print-order/simple/style.css

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -187,17 +187,4 @@ tfoot {
187187
width: 50%;
188188
text-align: right;
189189
vertical-align: top;
190-
}
191-
/* hide mobile version by default */
192-
.logo .mobile {
193-
display: none;
194-
}
195-
/* when screen is less than 600px wide show mobile version and hide desktop */
196-
@media ( max-width: 600px ) {
197-
.logo .mobile {
198-
display: block;
199-
}
200-
.logo .desktop {
201-
display: none;
202-
}
203190
}

templates/print-order/style.css

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -317,18 +317,4 @@ h2 {
317317
/* Remove padding to not generate empty follow up pages */
318318
padding-bottom: 0;
319319
}
320-
}
321-
322-
/* hide mobile version by default */
323-
.logo .mobile {
324-
display: none;
325-
}
326-
/* when screen is less than 600px wide show mobile version and hide desktop */
327-
@media ( max-width: 600px ) {
328-
.logo .mobile {
329-
display: block;
330-
}
331-
.logo .desktop {
332-
display: none;
333-
}
334320
}

0 commit comments

Comments
 (0)