diff --git a/app/assets/javascripts/app/controllers/notes.js b/app/assets/javascripts/app/controllers/notes.js index 05c92d611..8fc2ca944 100644 --- a/app/assets/javascripts/app/controllers/notes.js +++ b/app/assets/javascripts/app/controllers/notes.js @@ -107,11 +107,11 @@ angular.module('app') this.DefaultNotesToDisplayValue = (document.documentElement.clientHeight / MinNoteHeight) || 20; this.paginate = function() { + this.notesToDisplay += this.DefaultNotesToDisplayValue + if (this.searchSubmitted) { desktopManager.searchText(this.noteFilter.text); } - - this.notesToDisplay += this.DefaultNotesToDisplayValue } this.resetPagination = function() {