mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
chat: Adds placeholder to input. Translate stick button
This commit is contained in:
parent
59a6f2e9b8
commit
401db8fce3
6 changed files with 12 additions and 3 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue