Fix javascript regression with quoting
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
(function() {
|
||||
|
||||
window.Discourse.AdminFlagsController = Ember.Controller.extend({
|
||||
|
||||
clearFlags: function(item) {
|
||||
var _this = this;
|
||||
return item.clearFlags().then((function() {
|
||||
@@ -9,6 +10,7 @@
|
||||
return bootbox.alert("something went wrong");
|
||||
}));
|
||||
},
|
||||
|
||||
deletePost: function(item) {
|
||||
var _this = this;
|
||||
return item.deletePost().then((function() {
|
||||
@@ -17,12 +19,15 @@
|
||||
return bootbox.alert("something went wrong");
|
||||
}));
|
||||
},
|
||||
|
||||
adminOldFlagsView: (function() {
|
||||
return this.query === 'old';
|
||||
}).property('query'),
|
||||
|
||||
adminActiveFlagsView: (function() {
|
||||
return this.query === 'active';
|
||||
}).property('query')
|
||||
|
||||
});
|
||||
|
||||
}).call(this);
|
||||
|
||||
Reference in New Issue
Block a user