Skip to content

Instantly share code, notes, and snippets.

@raytiley
Created July 3, 2013 20:17
Show Gist options
  • Save raytiley/5922416 to your computer and use it in GitHub Desktop.
Save raytiley/5922416 to your computer and use it in GitHub Desktop.
App.FilesValidController = App.PaginationController.extend({
filesBinding: 'content',
goToPage: function(page) {
var offset = page -1;
this.set('pagerProps.offset', offset);
//hack
var files = App.DigitalFile.find({isValid:true, isOrphaned: false, offset:offset});
files.meta = this.get('pagerProps');
this.set('model', App.DigitalFile.find({isValid:true, isOrphaned: false, offset:offset}));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment