2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: JSHint wasn't validating ES6 files, this fixes a bunch of errors.

This commit is contained in:
Robin Ward 2015-02-10 17:20:16 -05:00
parent d5712e43cf
commit cf3582bedb
25 changed files with 9410 additions and 57913 deletions

View file

@ -15,15 +15,15 @@ export default Ember.ArrayController.extend(Discourse.Presence, {
}, 250).observes("filter"),
actions: {
recordAdded: function(arg) {
recordAdded(arg) {
this.get("model").unshiftObject(arg);
},
rollUp: function() {
var self = this;
rollUp() {
const self = this;
return bootbox.confirm(I18n.t("admin.logs.screened_ips.roll_up_confirm"), I18n.t("no_value"), I18n.t("yes_value"), function (confirmed) {
if (confirmed) {
self.set("loading", true)
self.set("loading", true);
return Discourse.ScreenedIpAddress.rollUp().then(function(results) {
if (results && results.subnets) {
if (results.subnets.length > 0) {
@ -39,7 +39,7 @@ export default Ember.ArrayController.extend(Discourse.Presence, {
});
},
exportScreenedIpList: function(subject) {
exportScreenedIpList() {
Discourse.ExportCsv.exportScreenedIpList().then(outputExportResult);
}
}