dist/assets/js/plugins/storeLocator/jquery.storelocator.js
function (currentPage) {
			this.writeDebug('paginationSetup',arguments);
			var pagesOutput = '';
			var totalPages;
			var $paginationList = $('.bh-sl-pagination-container .bh-sl-pagination');

			// Total pages
			if ( this.settings.storeLimit === -1 || locationset.length < this.settings.storeLimit ) {
				totalPages = locationset.length / this.settings.locationsPerPage;
			} else {
				totalPages = this.settings.storeLimit / this.settings.locationsPerPage;
			}

			// Current page check
			if (typeof currentPage === 'undefined') {
				currentPage = 0;
			}

			// Initial pagination setup
			if ($paginationList.length === 0) {

				pagesOutput = this._paginationOutput(currentPage, totalPages);
			}
			// Update pagination on page change
			else {
				// Remove the old pagination
				$paginationList.empty();

				// Add the numbers
				pagesOutput = this._paginationOutput(currentPage, totalPages);
			}

			$paginationList.append(pagesOutput);
		}
function (currentPage) {
			this.writeDebug('paginationSetup',arguments);
			var pagesOutput = '';
			var totalPages;
			var $paginationList = $('.bh-sl-pagination-container .bh-sl-pagination');

			// Total pages
			if ( this.settings.storeLimit === -1 || locationset.length < this.settings.storeLimit ) {
				totalPages = locationset.length / this.settings.locationsPerPage;
			} else {
				totalPages = this.settings.storeLimit / this.settings.locationsPerPage;
			}

			// Current page check
			if (typeof currentPage === 'undefined') {
				currentPage = 0;
			}

			// Initial pagination setup
			if ($paginationList.length === 0) {

				pagesOutput = this._paginationOutput(currentPage, totalPages);
			}
			// Update pagination on page change
			else {
				// Remove the old pagination
				$paginationList.empty();

				// Add the numbers
				pagesOutput = this._paginationOutput(currentPage, totalPages);
			}

			$paginationList.append(pagesOutput);
		}
function ( currentPage ) { this . writeDebug ( 'paginationSetup' , arguments ) ; var pagesOutput = '' ; var totalPages ; var $paginationList = $ ( '.bh-sl-pagination-container .bh-sl-pagination' ) ; // Total pages if ( this . settings . storeLimit === - 1 || locationset . length < this . settings . storeLimit ) { totalPages = locationset . length / this . settings . locationsPerPage ; } else { totalPages = this . settings . storeLimit / this . settings . locationsPerPage ; } // Current page check if ( typeof currentPage === 'undefined' ) { currentPage = 0 ; } // Initial pagination setup if ( $paginationList . length === 0 ) { pagesOutput = this . _paginationOutput ( currentPage , totalPages ) ; } // Update pagination on page change else { // Remove the old pagination $paginationList . empty ( ) ; // Add the numbers pagesOutput = this . _paginationOutput ( currentPage , totalPages ) ; } $paginationList . append ( pagesOutput ) ; }
Set up the pagination pages

@param currentPage {number} optional current page
Set up the pagination pages