discourse/app/assets/javascripts/admin/views/admin.js.es6

10 lines
279 B
Text
Raw Normal View History

2015-02-20 12:21:19 -05:00
export default Discourse.View.extend({
_disableCustomStylesheets: function() {
$("link.custom-css").attr("rel", "");
}.on("willInsertElement"),
2015-02-20 12:18:25 -05:00
2015-02-20 12:21:19 -05:00
_enableCustomStylesheets: function() {
$("link.custom-css").attr("rel", "stylesheet");
}.on("willDestroyElement")
2015-02-20 12:18:25 -05:00
});