1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

add account view to sysadmin app router

This commit is contained in:
lian
2016-05-17 14:09:24 +08:00
parent 80a3b1e7d7
commit ca1a817dbd
2 changed files with 25 additions and 3 deletions

View File

@@ -7,9 +7,11 @@ define([
'sysadmin-app/views/dashboard',
'sysadmin-app/views/desktop-devices',
'sysadmin-app/views/mobile-devices',
'sysadmin-app/views/device-errors'
'sysadmin-app/views/device-errors',
'app/views/account'
], function($, Backbone, Common, SideNavView, DashboardView,
DesktopDevicesView, MobileDevicesView, DeviceErrorsView) {
DesktopDevicesView, MobileDevicesView, DeviceErrorsView,
AccountView) {
"use strict";
var Router = Backbone.Router.extend({
@@ -39,6 +41,8 @@ define([
this.mobileDevicesView = new MobileDevicesView();
this.deviceErrorsView = new DeviceErrorsView();
app.ui.accountView = this.accountView = new AccountView();
this.currentView = this.dashboardView;
$('#info-bar .close').click(Common.closeTopNoticeBar);