File tree Expand file tree Collapse file tree 4 files changed +6
-33
lines changed
Expand file tree Collapse file tree 4 files changed +6
-33
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments