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/photos": "photos",
|
||||||
"people/:id/contacts": "profile",
|
"people/:id/contacts": "profile",
|
||||||
"people": "pageWithAspectMembershipDropdowns",
|
"people": "pageWithAspectMembershipDropdowns",
|
||||||
"notifications": "pageWithAspectMembershipDropdowns",
|
"notifications": "notifications",
|
||||||
|
|
||||||
"people/:id": "profile",
|
"people/:id": "profile",
|
||||||
"u/:name": "profile"
|
"u/:name": "profile"
|
||||||
|
|
@ -83,6 +83,12 @@ app.Router = Backbone.Router.extend({
|
||||||
app.conversations = new app.views.Conversations();
|
app.conversations = new app.views.Conversations();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
notifications: function() {
|
||||||
|
this._loadContacts();
|
||||||
|
this.renderAspectMembershipDropdowns($(document));
|
||||||
|
new app.views.Notifications({el: "#notifications_container"});
|
||||||
|
},
|
||||||
|
|
||||||
registration: function() {
|
registration: function() {
|
||||||
app.page = new app.pages.Registration();
|
app.page = new app.pages.Registration();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -74,8 +74,3 @@
|
||||||
.no-notifications.well
|
.no-notifications.well
|
||||||
%h4
|
%h4
|
||||||
= t(".no_notifications")
|
= t(".no_notifications")
|
||||||
|
|
||||||
:javascript
|
|
||||||
$(document).ready(function(){
|
|
||||||
new app.views.Notifications({ el: '#notifications_container' });
|
|
||||||
});
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue