Remove inline javascript on notifications page
This commit is contained in:
parent
bd74eea140
commit
fca4a79f80
2 changed files with 7 additions and 6 deletions
|
|
@ -30,7 +30,7 @@ app.Router = Backbone.Router.extend({
|
|||
"people/:id/photos": "photos",
|
||||
"people/:id/contacts": "profile",
|
||||
"people": "pageWithAspectMembershipDropdowns",
|
||||
"notifications": "pageWithAspectMembershipDropdowns",
|
||||
"notifications": "notifications",
|
||||
|
||||
"people/:id": "profile",
|
||||
"u/:name": "profile"
|
||||
|
|
@ -83,6 +83,12 @@ app.Router = Backbone.Router.extend({
|
|||
app.conversations = new app.views.Conversations();
|
||||
},
|
||||
|
||||
notifications: function() {
|
||||
this._loadContacts();
|
||||
this.renderAspectMembershipDropdowns($(document));
|
||||
new app.views.Notifications({el: "#notifications_container"});
|
||||
},
|
||||
|
||||
registration: function() {
|
||||
app.page = new app.pages.Registration();
|
||||
},
|
||||
|
|
|
|||
|
|
@ -74,8 +74,3 @@
|
|||
.no-notifications.well
|
||||
%h4
|
||||
= t(".no_notifications")
|
||||
|
||||
:javascript
|
||||
$(document).ready(function(){
|
||||
new app.views.Notifications({ el: '#notifications_container' });
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue