1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

remember sort mode after sort repos/dirents

This commit is contained in:
lian
2016-09-07 10:03:21 +08:00
parent c8de707f56
commit a11925b033
7 changed files with 202 additions and 200 deletions

View File

@@ -3,6 +3,7 @@ define([
'jquery',
'backbone',
'common',
'js.cookie',
'app/views/side-nav',
'app/views/myhome-repos',
'app/views/myhome-shared-repos',
@@ -20,7 +21,7 @@ define([
'app/views/share-admin-upload-links',
'app/views/notifications',
'app/views/account'
], function($, Backbone, Common, SideNavView, MyReposView,
], function($, Backbone, Common, Cookies, SideNavView, MyReposView,
SharedReposView, GroupsView, GroupView, OrgView, DirView,
StarredFileView, ActivitiesView, DevicesView, InvitationsView,
ShareAdminReposView, ShareAdminFoldersView, ShareAdminShareLinksView,
@@ -81,6 +82,7 @@ define([
app.ui.notificationsView = this.notificationsView = new NotificationsView();
app.ui.accountView = this.accountView = new AccountView();
app.pageOptions.sort_mode = Cookies.get('sort_mode') || 'name_up';
this.currentView = this.myReposView;