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

Rewrite notifications with popover class

This commit is contained in:
Daniel Pan
2016-04-18 17:46:06 +08:00
parent 3909d14983
commit 6b0f05bd34
8 changed files with 185 additions and 304 deletions

View File

@@ -12,10 +12,12 @@ define([
'app/views/dir',
'app/views/starred-file',
'app/views/devices',
'app/views/activities'
'app/views/activities',
'app/views/notifications'
], function($, Backbone, Common, SideNavView, MyReposView,
SharedReposView, GroupsView, GroupView,
OrgView, DirView, StarredFileView, DevicesView, ActivitiesView) {
OrgView, DirView, StarredFileView, DevicesView, ActivitiesView,
NotificationsView) {
"use strict";
var Router = Backbone.Router.extend({
@@ -45,7 +47,7 @@ define([
Common.prepareApiCsrf();
Common.initLocale();
Common.initAccountPopup();
Common.initNoticePopup();
//Common.initNoticePopup();
this.sideNavView = new SideNavView();
app.ui.sideNavView = this.sideNavView;
@@ -61,6 +63,8 @@ define([
this.devicesView = new DevicesView();
this.activitiesView = new ActivitiesView();
app.ui.notificationsView = this.notificationsView = new NotificationsView();
this.currentView = this.myReposView;
$('#info-bar .close').click(Common.closeTopNoticeBar);