1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 16:31:13 +00:00

[sysadmin] devices: fix & improvement

This commit is contained in:
llj
2016-06-16 10:29:25 +08:00
parent 5487461541
commit 8c0707c647
5 changed files with 12 additions and 12 deletions

View File

@@ -49,10 +49,10 @@ define([
getNextPage: function() {
this.initPage();
var current_page = this.deviceCollection.state.current_page;
if (this.deviceCollection.state.hasNextPage) {
if (this.deviceCollection.state.has_next_page) {
this.deviceCollection.getPage(current_page + 1, {
reset: true,
data: {'platform': 'desktop'},
data: {'platform': 'desktop'}
});
}
return false;
@@ -64,7 +64,7 @@ define([
if (current_page > 1) {
this.deviceCollection.getPage(current_page - 1, {
reset: true,
data: {'platform': 'desktop'},
data: {'platform': 'desktop'}
});
}
return false;
@@ -132,7 +132,7 @@ define([
},
renderPaginator: function() {
if (this.deviceCollection.state.hasNextPage) {
if (this.deviceCollection.state.has_next_page) {
this.$jsNext.show();
} else {
this.$jsNext.hide();