2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-08 12:06:51 +08:00
discourse/app/assets/javascripts/admin/views/admin.js.es6

13 lines
382 B
Text
Raw Normal View History

export default Ember.View.extend({
2015-02-20 18:21:19 +01:00
_disableCustomStylesheets: function() {
if (this.session.get("disableCustomCSS")) {
$("link.custom-css").attr("rel", "");
this.session.set("disableCustomCSS", false);
}
2015-02-20 18:21:19 +01:00
}.on("willInsertElement"),
2015-02-20 12:18:25 -05:00
2015-02-20 18:21:19 +01:00
_enableCustomStylesheets: function() {
$("link.custom-css").attr("rel", "stylesheet");
}.on("willDestroyElement")
2015-02-20 12:18:25 -05:00
});