diff roster.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/roster.js
+++ b/roster.js
@@ -55,7 +55,7 @@ function initRoster(connection) {
             button.classList.add('btn-danger');
             button.textContent = '✕';
             button.onclick = function (evt) {
-                const really = confirm('{% trans 'Do you really want to remove {}?' %}'.replace('{}', jid));
+                const really = confirm(`{% trans 'Do you really want to remove ${jid}?' %}`);
                 if (!really)
                     return;
                 const iq = $iq({type: 'set'})