Fix: when acct-sel, not showing current acct prof img

This commit is contained in:
Cutls 2019-10-03 02:14:22 +09:00
parent 120e9da1c9
commit 919c6c40e2
3 changed files with 5 additions and 0 deletions

View File

@ -289,6 +289,7 @@ function clear() {
$("#post-acct-sel").val(localStorage.getItem("main"));
}
$('select').formSelect();
mdCheck()
$("#left-side").show();
$("#default-emoji").show();
$("#unreact").show();

View File

@ -295,7 +295,9 @@ function redraft(id, acct_id) {
show();
del(id, acct_id);
$("#post-acct-sel").prop("disabled", true);
$("#post-acct-sel").val(acct_id);
$('select').formSelect();
mdCheck()
var medias = $("[toot-id=" + id + "]").attr("data-medias");
var vismode = $("[toot-id=" + id + "] .vis-data").attr("data-vis");
vis(vismode);

View File

@ -16,6 +16,7 @@ function re(id, ats_cm, acct_id, mode) {
$("#post-acct-sel").val(acct_id);
$("#post-acct-sel").prop("disabled", true);
$('select').formSelect();
mdCheck()
$("#textarea").attr("placeholder", lang.lang_usetxtbox_reply);
$("#textarea").focus();
var profimg = localStorage.getItem("prof_" + acct_id);
@ -75,5 +76,6 @@ function qt(id, acct_id, at, url) {
}
$("#post-acct-sel").val(acct_id);
$('select').formSelect();
mdCheck()
$("#textarea").focus();
}