mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
keep jshint happy :) need to reconfigure my vim jshint ...
This commit is contained in:
parent
e969eb14e8
commit
0054416786
3 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ Discourse.ActionSummary = Discourse.Model.extend({
|
|||
this.set('acted', true);
|
||||
this.set('count', this.get('count') + 1);
|
||||
this.set('can_act', false);
|
||||
this.set('can_undo', action != 'notify_moderators' && action != 'notify_user');
|
||||
this.set('can_undo', action !== 'notify_moderators' && action !== 'notify_user');
|
||||
|
||||
// Add ourselves to the users who liked it if present
|
||||
if (this.present('users')) {
|
||||
|
|
|
@ -112,7 +112,7 @@ Discourse.Post = Discourse.Model.extend({
|
|||
|
||||
flagsAvailable: (function() {
|
||||
var _this = this;
|
||||
flags = Discourse.get('site.flagTypes').filter(function(item) {
|
||||
var flags = Discourse.get('site.flagTypes').filter(function(item) {
|
||||
return _this.get("actionByName." + (item.get('name_key')) + ".can_act");
|
||||
});
|
||||
return flags;
|
||||
|
|
|
@ -47,7 +47,7 @@ Discourse.FlagView = Discourse.ModalBodyView.extend({
|
|||
var action = this.get('selected');
|
||||
var postAction = this.get('post.actionByName.' + (action.get('name_key')));
|
||||
|
||||
actionType = Discourse.get('site').postActionTypeById(this.get('postActionTypeId'));
|
||||
var actionType = Discourse.get('site').postActionTypeById(this.get('postActionTypeId'));
|
||||
if (postAction) {
|
||||
postAction.act({
|
||||
message: action.get('message')
|
||||
|
|
Loading…
Reference in a new issue