discourse/app/assets/javascripts/admin/routes/admin_route.js
2015-02-20 17:43:29 +01:00

19 lines
392 B
JavaScript

Discourse.AdminRoute = Discourse.Route.extend({
renderTemplate: function() {
this.render('admin/templates/admin');
},
titleToken: function() {
return I18n.t('admin_title');
},
activate: function() {
this._super();
$("link.custom-css").attr("rel", "");
},
deactivate: function() {
this._super();
$("link.custom-css").attr("rel", "stylesheet");
}
});