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

[system repo admin] fix, improvement, supplement, clean

This commit is contained in:
llj
2016-06-07 17:32:01 +08:00
committed by lian
parent a767aeb3d8
commit 8c2e16ca36
29 changed files with 615 additions and 1153 deletions

View File

@@ -10,10 +10,10 @@ define([
model: RepoModel,
state: {pageSize: 100},
parseState: function(data) {
return {hasNextPage: data[0].has_next_page, current_page: data[0].current_page};
return data.page_info; // {'has_next_page': has_next_page, 'current_page': current_page}
},
parseRecords: function(data) {
return data[1];
return data.repos;
},
url: function () {
return Common.getUrl({name: 'admin-libraries'});