mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 07:41:26 +00:00
new devices page
This commit is contained in:
@@ -6,9 +6,10 @@ define([
|
||||
'app/views/myhome-repos',
|
||||
'app/views/myhome-shared-repos',
|
||||
'app/views/starred-file',
|
||||
'app/views/devices',
|
||||
'app/views/activities'
|
||||
], function($, _, Backbone, Common, ReposView,
|
||||
SharedReposView, StarredFileView, ActivitiesView) {
|
||||
SharedReposView, StarredFileView, DevicesView, ActivitiesView) {
|
||||
'use strict';
|
||||
|
||||
var MyHomeView = Backbone.View.extend({
|
||||
@@ -18,6 +19,7 @@ define([
|
||||
this.reposView = new ReposView();
|
||||
this.sharedReposView = new SharedReposView();
|
||||
this.starredFileView = new StarredFileView();
|
||||
this.devicesView = new DevicesView();
|
||||
this.activitiesView = new ActivitiesView();
|
||||
|
||||
this.dirView = options.dirView;
|
||||
@@ -45,6 +47,12 @@ define([
|
||||
this.currentView = this.starredFileView;
|
||||
},
|
||||
|
||||
showDevices: function() {
|
||||
this.currentView.hide();
|
||||
this.devicesView.show();
|
||||
this.currentView = this.devicesView;
|
||||
},
|
||||
|
||||
showActivities: function() {
|
||||
this.currentView.hide();
|
||||
this.activitiesView.show();
|
||||
|
Reference in New Issue
Block a user