chat: Adds placeholder to input. Translate stick button

This commit is contained in:
Sebastian Castro 2019-02-15 18:14:02 +01:00 committed by muxator
parent 59a6f2e9b8
commit 401db8fce3
6 changed files with 12 additions and 3 deletions

View file

@ -854,7 +854,8 @@ window.html10n = (function(window, document, undefined) {
, "value": 1
, "placeholder": 1
}
if (index > 0 && str.id.substr(index + 1) in attrList) { // an attribute has been specified
if (index > 0 && str.id.substr(index + 1) in attrList) {
// an attribute has been specified (example: "my_translation_key.placeholder")
prop = str.id.substr(index + 1)
} else { // no attribute: assuming text content by default
prop = document.body.textContent ? 'textContent' : 'innerText'