Fix javascript regression with quoting

This commit is contained in:
Robin Ward
2013-02-21 12:54:40 -05:00
parent c5393d93f3
commit f6263749d4
9 changed files with 46 additions and 4 deletions

View File

@ -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);