discourse/app/assets/javascripts/admin/views/admin.js.es6
2015-02-20 18:21:19 +01:00

9 lines
279 B
JavaScript

export default Discourse.View.extend({
_disableCustomStylesheets: function() {
$("link.custom-css").attr("rel", "");
}.on("willInsertElement"),
_enableCustomStylesheets: function() {
$("link.custom-css").attr("rel", "stylesheet");
}.on("willDestroyElement")
});