Skip to content

Commit

Permalink
🐛 Fix pagination buttons, close #335
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwredfish committed Feb 9, 2016
1 parent 5b4472f commit 14198ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/scripts/apps/notes/list/views/noteSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ define([
* Gets next page's models and resets the collection
*/
nextPage: function() {
if (this.ui.nextPage.hasClass('disabled')) {
return false;
}

this.navigatePage(1);
this.collection.getNextPage();
},
Expand All @@ -118,6 +122,10 @@ define([
* Gets previous page's models and resets the collection
*/
previousPage: function() {
if (this.ui.prevPage.hasClass('disabled')) {
return false;
}

this.navigatePage(-1);
this.collection.getPreviousPage();
},
Expand Down

0 comments on commit 14198ba

Please sign in to comment.