Skip to content

Commit

Permalink
Merge pull request #44 from stanleynguyen/master
Browse files Browse the repository at this point in the history
[Resolves #36] Update default selectors to using IDs
  • Loading branch information
Cam committed Aug 2, 2019
2 parents 69bcf4d + cd1c3f2 commit 0218bbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/_documentation/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ document.addEventListener("DOMContentLoaded", function() {

Option | Default | Type | Description
------------|------------------------|----------|-------------
pagination | `.AjaxinatePagination` | String | A selector to identify the pagination container.
container | `.AjaxinateLoop` | String | A selector to identify the grid that you want to duplicate.
pagination | `#AjaxinatePagination` | String | A selector to identify the pagination container.
container | `#AjaxinateLoop` | String | A selector to identify the grid that you want to duplicate.
method | `scroll` | String | Can be changed to click to that users must click to load more.
offset | `0` | Integer | Decrease the distance required to scroll before sending a request.
loadingText | `Loading` | String | Change the text of the pagination link during a request.
Expand Down
4 changes: 2 additions & 2 deletions src/ajaxinate.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ const Ajaxinate = function ajaxinateConstructor(config) {
callback: null, function to callback after a new page is loaded
*/
const defaultSettings = {
pagination: '.AjaxinatePagination',
pagination: '#AjaxinatePagination',
method: 'scroll',
container: '.AjaxinateLoop',
container: '#AjaxinateLoop',
offset: 0,
loadingText: 'Loading',
callback: null,
Expand Down

0 comments on commit 0218bbe

Please sign in to comment.