Remove inline javascript on notifications page

This commit is contained in:
Steffen van Bergerem 2016-08-10 23:24:01 +02:00
parent bd74eea140
commit fca4a79f80
No known key found for this signature in database
GPG key ID: 2F08F75F9525C7E0
2 changed files with 7 additions and 6 deletions

View file

@ -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();
},

View file

@ -74,8 +74,3 @@
.no-notifications.well
%h4
= t(".no_notifications")
:javascript
$(document).ready(function(){
new app.views.Notifications({ el: '#notifications_container' });
});