Mercurial > xmpp-account-manager
diff pep.js @ 57:427807059ca8
Use `` in JS for templating, and add two forgotten strings.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 24 May 2020 12:51:07 +0200 |
parents | 010b905a74d4 |
children | 6d861d881b96 |
line wrap: on
line diff
--- a/pep.js +++ b/pep.js @@ -65,7 +65,7 @@ function initPEP(connection) { button.classList.add('btn-danger'); button.textContent = '✕'; button.onclick = function (evt) { - const really = confirm('{% trans 'Do you really want to remove the node {}?' %}'.replace('{}', node)); + const really = confirm(`{% trans 'Do you really want to remove the node ${node}?' %}`); if (!really) return; const iq = $iq({type: 'set'})