mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -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('acted', true);
|
||||||
this.set('count', this.get('count') + 1);
|
this.set('count', this.get('count') + 1);
|
||||||
this.set('can_act', false);
|
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
|
// Add ourselves to the users who liked it if present
|
||||||
if (this.present('users')) {
|
if (this.present('users')) {
|
||||||
|
|
|
@ -112,7 +112,7 @@ Discourse.Post = Discourse.Model.extend({
|
||||||
|
|
||||||
flagsAvailable: (function() {
|
flagsAvailable: (function() {
|
||||||
var _this = this;
|
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 _this.get("actionByName." + (item.get('name_key')) + ".can_act");
|
||||||
});
|
});
|
||||||
return flags;
|
return flags;
|
||||||
|
|
|
@ -47,7 +47,7 @@ Discourse.FlagView = Discourse.ModalBodyView.extend({
|
||||||
var action = this.get('selected');
|
var action = this.get('selected');
|
||||||
var postAction = this.get('post.actionByName.' + (action.get('name_key')));
|
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) {
|
if (postAction) {
|
||||||
postAction.act({
|
postAction.act({
|
||||||
message: action.get('message')
|
message: action.get('message')
|
||||||
|
|
Loading…
Reference in a new issue