mirror of
https://github.com/discourse/discourse.git
synced 2025-06-19 13:51:37 +08:00
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