mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
jshint made me break my code. Change logic to fix usedBackgroundColors and make jshint happy
This commit is contained in:
parent
93f36cdf93
commit
64eeb7f21e
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ Discourse.EditCategoryView = Discourse.ModalBodyView.extend({
|
|||
usedBackgroundColors: function() {
|
||||
return Discourse.site.categories.map(function(c) {
|
||||
// If editing a category, don't include its color:
|
||||
return (!this.get('category.id') || this.get('category.color').toUpperCase() !== c.color.toUpperCase()) ? c.color.toUpperCase() : null;
|
||||
return (this.get('category.id') && this.get('category.color').toUpperCase() === c.color.toUpperCase()) ? null : c.color.toUpperCase();
|
||||
}, this).compact();
|
||||
}.property('Discourse.site.categories', 'category.id', 'category.color'),
|
||||
|
||||
|
|
Loading…
Reference in a new issue