From 2f918fca1d9a151bf550bbbde23dae9e28190a6e Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Tue, 11 Feb 2025 23:17:02 +0100 Subject: [PATCH] =?UTF-8?q?Poprawiono=20formatowanie=20kodu=20w=20pliku=20?= =?UTF-8?q?products-list.php=20oraz=20dodano=20ustawienie=20warto=C5=9Bci?= =?UTF-8?q?=20bie=C5=BC=C4=85cej=20strony=20w=20formularzu.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/templates/shop-product/products-list.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/admin/templates/shop-product/products-list.php b/admin/templates/shop-product/products-list.php index 0be122a..f4794e0 100644 --- a/admin/templates/shop-product/products-list.php +++ b/admin/templates/shop-product/products-list.php @@ -851,16 +851,19 @@ data = jQuery.parseJSON( response ); - if ( data.status == 'ok' ) { + if ( data.status == 'ok' ) + { $( '#table-products tbody' ).html( data.html ); $( '.pagination .previous' ).attr( 'page', ( current_page - 1 > 1 ) ? ( current_page - 1 ) : 1 ); $( '.pagination .next' ).attr( 'page', ( current_page + 1 < pagination_max ) ? ( current_page + 1 ) : pagination_max ); $( '.pagination span' ).html( current_page ); - if ( data.pagination_max ) { + if ( data.pagination_max ) + { $( '.pagination' ).attr( 'pagination_max', data.pagination_max ); $( '.pagination #max_page' ).html( data.pagination_max ); $( '.pagination .last' ).attr( 'page', data.pagination_max ); } + $( '#current-page' ).val( current_page ); } } });