Skip to content

Instantly share code, notes, and snippets.

@goofmint

goofmint/index.js

Created Nov 23, 2016
Embed
What would you like to do?
7.md
update_page: function() {
var currentPage = this._dataSearcher.getCurrentPage();
$("#prev").attr('disabled', currentPage == 1);
this.$find('#page').text(currentPage);
var totalPage = this._dataSearcher.getTotalPages();
$("#next").attr('disabled', currentPage == totalPage);
this.$find('#total_page').text(totalPage);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment