1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 23:00:57 +00:00

new admin libraries page

This commit is contained in:
lian
2016-05-25 10:45:22 +08:00
parent 37f6648a12
commit 72f4297934
32 changed files with 1880 additions and 65 deletions

View File

@@ -1,17 +1,16 @@
define([
'underscore',
'backbone',
'backbone.paginator',
'common',
'sysadmin-app/models/device'
], function(_, Backbone, BackbonePaginator, Common, Device) {
], function(_, BackbonePaginator, Common, DeviceModel) {
'use strict';
var DeviceCollection = Backbone.PageableCollection.extend({
model: Device,
state: {pageSize: 50,},
model: DeviceModel,
state: {pageSize: 50},
parseState: function(data) {
return {hasNextPage: data[0].has_next_page};
return {hasNextPage: data[0].has_next_page, current_page: data[0].current_page};
},
url: function () {
return Common.getUrl({name: 'admin-devices'});