mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Trivial JS clean up
This commit is contained in:
@@ -1,15 +1,8 @@
|
||||
Discourse.AdminReportsController = Ember.ObjectController.extend({
|
||||
viewMode: 'table',
|
||||
|
||||
// true if we're viewing the table mode
|
||||
viewingTable: function() {
|
||||
return this.get('viewMode') === 'table';
|
||||
}.property('viewMode'),
|
||||
|
||||
// true if we're viewing the bar chart mode
|
||||
viewingBarChart: function() {
|
||||
return this.get('viewMode') === 'barChart';
|
||||
}.property('viewMode'),
|
||||
viewingTable: Em.computed.equal('viewMode', 'table'),
|
||||
viewingBarChart: Em.computed.equal('viewMode', 'barChart'),
|
||||
|
||||
// Changes the current view mode to 'table'
|
||||
viewAsTable: function() {
|
||||
|
||||
@@ -15,7 +15,7 @@ Discourse.AdminSiteSettingsController = Ember.ArrayController.extend(Discourse.P
|
||||
|
||||
@property filteredContent
|
||||
**/
|
||||
filteredContent: (function() {
|
||||
filteredContent: function() {
|
||||
|
||||
// If we have no content, don't bother filtering anything
|
||||
if (!this.present('content')) return null;
|
||||
@@ -37,7 +37,7 @@ Discourse.AdminSiteSettingsController = Ember.ArrayController.extend(Discourse.P
|
||||
|
||||
return true;
|
||||
});
|
||||
}).property('filter', 'content.@each', 'onlyOverridden'),
|
||||
}.property('filter', 'content.@each', 'onlyOverridden'),
|
||||
|
||||
/**
|
||||
Reset a setting to its default value
|
||||
|
||||
Reference in New Issue
Block a user