PluginProbe
Booking Calendar / 10.1.3
Booking Calendar v10.1.3
11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 10.11.2 All 203 releases
booking / includes / _pagination / pagination.js

pagination.js in Booking Calendar 10.1.3, at includes/_pagination/pagination.js

35 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Views
3 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4
5 /**
6 * Show Pagination
7 *
8 * @param pagination_container - '.wpbc_rules_pagination'
9 * @param params_obj - JSON object ~ { 'page_active': $page_active, 'pages_count': $pages_count }
10 */
11 function wpbc_pagination_echo( pagination_container, params_obj ){
12
13 var pagination = wp.template( 'wpbc_pagination' );
14 jQuery( pagination_container ).html( '<div class="wpbc-bottom-pagination"></div>' );
15
16 // Pagination
17 jQuery( pagination_container + ' .wpbc-bottom-pagination').append( pagination( params_obj ) ) ;
18
19
20 // Number of items per page
21 var pagination_items_per_page = wp.template( 'wpbc_pagination_items_per_page' );
22 jQuery( pagination_container + ' .wpbc-bottom-pagination').append( pagination_items_per_page( params_obj ) ) ;
23
24 jQuery( pagination_container ).show();
25 }
26
27
28 /**
29 * Blank function. -- Redefine this function in specific page-XXXX.php file for specific actions
30 *
31 * @param page_number int
32 */
33 function wpbc_pagination_click_page( page_number ){
34 console.log( 'wpbc_pagination_click_page', page_number );
35 }