Add translations for counter of profile (#3214)

ref #3101
This commit is contained in:
Yamagishi Kazutoshi authored and Eugen Rochko committed 2017-05-22 04:45:55 +02:00
1 parent b69365e397
commit 84608c3ff8
11 files changed
+32 -28

No files matched your search

+6 -2
View File
@@ -98,10 +98,14 @@ delegate(document, '.status__content__spoiler-link', 'click', ({ target }) => {
delegate(document, '.account_display_name', 'input', ({ target }) => {
const nameCounter = document.querySelector('.name-counter');
nameCounter.textContent = 30 - length(target.value);
if (nameCounter) {
nameCounter.textContent = 30 - length(target.value);
}
});
delegate(document, '.account_note', 'input', ({ target }) => {
const noteCounter = document.querySelector('.note-counter');
noteCounter.textContent = 160 - length(target.value);
if (noteCounter) {
noteCounter.textContent = 160 - length(target.value);
}
});