|
|
@ -813,12 +813,13 @@ define([
|
|
|
|
channels: trimChannels,
|
|
|
|
channels: trimChannels,
|
|
|
|
teamId: typeof(owned) === "number" && owned
|
|
|
|
teamId: typeof(owned) === "number" && owned
|
|
|
|
}, function (obj) {
|
|
|
|
}, function (obj) {
|
|
|
|
|
|
|
|
spinner.hide();
|
|
|
|
if (obj && obj.error) {
|
|
|
|
if (obj && obj.error) {
|
|
|
|
console.error(obj.error);
|
|
|
|
console.error(obj.error);
|
|
|
|
// XXX what are the possible errors?
|
|
|
|
// XXX what are the possible errors?
|
|
|
|
|
|
|
|
$(size).append(h('div.alert.alert-danger', Messages.trimHistory_error || 'error')); // XXX
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
spinner.hide();
|
|
|
|
|
|
|
|
$(size).append(h('div.alert.alert-success', Messages.trimHistory_success || 'ok')); // XXX
|
|
|
|
$(size).append(h('div.alert.alert-success', Messages.trimHistory_success || 'ok')); // XXX
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|