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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user