Fix: follow text

This commit is contained in:
cutls 2019-10-26 01:21:25 +09:00
parent 3e2d40d248
commit dd086e62cb

View File

@ -150,10 +150,10 @@ function follow(acct_id, remote) {
console.log(["Success: folllow", json]);
if ($("#his-data").hasClass("following")) {
$("#his-data").removeClass("following");
$("#his-follow-btn").text(lang.lang_status_follow);
$("#his-follow-btn-text").text(lang.lang_status_follow);
} else {
$("#his-data").addClass("following");
$("#his-follow-btn").text(lang.lang_status_unfollow);
$("#his-follow-btn-text").text(lang.lang_status_unfollow);
}
}
};
@ -196,10 +196,10 @@ function block(acct_id) {
if (httpreq.readyState === 4) {
if ($("#his-data").hasClass("blocking")) {
$("#his-data").removeClass("blocking");
$("#his-block-btn").text(lang.lang_status_block);
$("#his-block-btn-text").text(lang.lang_status_block);
} else {
$("#his-data").addClass("blocking");
$("#his-block-btn").text(lang.lang_status_unblock);
$("#his-block-btn-text").text(lang.lang_status_unblock);
}
}
};
@ -253,10 +253,10 @@ function muteDo(acct_id) {
if (httpreq.readyState === 4) {
if ($("#his-data").hasClass("muting")) {
$("#his-data").removeClass("muting");
$("#his-mute-btn").text(lang.lang_status_mute);
$("#his-mute-btn-text").text(lang.lang_status_mute);
} else {
$("#his-data").addClass("muting");
$("#his-mute-btn").text(lang.lang_status_unmute);
$("#his-mute-btn-text").text(lang.lang_status_unmute);
}
}
};