mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +03:00
Users: Work fine with empty statuses
This commit is contained in:
parent
c74847dd5f
commit
7b4d30328d
1 changed files with 8 additions and 1 deletions
|
@ -574,7 +574,14 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
document.querySelector("#page_status_text").innerHTML = status;
|
if(document.status_popup_form.status.value === "") {
|
||||||
|
document.querySelector("#page_status_text").innerHTML = `[ ${tr("change_status")} ]`;
|
||||||
|
document.querySelector("#page_status_text").className = "edit_link page_status_edit_button";
|
||||||
|
} else {
|
||||||
|
document.querySelector("#page_status_text").innerHTML = status;
|
||||||
|
document.querySelector("#page_status_text").className = "page_status page_status_edit_button";
|
||||||
|
}
|
||||||
|
|
||||||
setStatusEditorShown(false);
|
setStatusEditorShown(false);
|
||||||
document.status_popup_form.submit.innerHTML = tr("send");
|
document.status_popup_form.submit.innerHTML = tr("send");
|
||||||
document.status_popup_form.submit.disabled = false;
|
document.status_popup_form.submit.disabled = false;
|
||||||
|
|
Loading…
Reference in a new issue