Fix admin cosmetics guest icon text typo

This commit is contained in:
Jeremy Zhang 2017-09-24 04:19:24 +00:00
parent e30171a8de
commit 3cb5697680

View File

@ -105,13 +105,13 @@ function update_guest_icon_switch(user_id, element) {
var webhook_checked = $(element).is(':checked'); var webhook_checked = $(element).is(':checked');
var formPatch = patchForm(user_id, {"guest_icon": webhook_checked}); var formPatch = patchForm(user_id, {"guest_icon": webhook_checked});
formPatch.done(function (data) { formPatch.done(function (data) {
Materialize.toast('Webhook Icon updated!', 10000); Materialize.toast('Guest Icon updated!', 10000);
}); });
formPatch.fail(function (data) { formPatch.fail(function (data) {
if (data.status == 409) { if (data.status == 409) {
Materialize.toast('This user id does not exists!', 10000); Materialize.toast('This user id does not exists!', 10000);
} else { } else {
Materialize.toast('Oh no! Something has failed changing the webhook icon toggle!', 10000); Materialize.toast('Oh no! Something has failed changing the guest icon toggle!', 10000);
} }
}); });
} }