Mercurial > xmpp-account-manager
comparison 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 |
comparison
equal
deleted
inserted
replaced
56:010b905a74d4 | 57:427807059ca8 |
---|---|
63 const button = document.createElementNS('http://www.w3.org/1999/xhtml', 'button'); | 63 const button = document.createElementNS('http://www.w3.org/1999/xhtml', 'button'); |
64 button.classList.add('btn'); | 64 button.classList.add('btn'); |
65 button.classList.add('btn-danger'); | 65 button.classList.add('btn-danger'); |
66 button.textContent = '✕'; | 66 button.textContent = '✕'; |
67 button.onclick = function (evt) { | 67 button.onclick = function (evt) { |
68 const really = confirm('{% trans 'Do you really want to remove the node {}?' %}'.replace('{}', node)); | 68 const really = confirm(`{% trans 'Do you really want to remove the node ${node}?' %}`); |
69 if (!really) | 69 if (!really) |
70 return; | 70 return; |
71 const iq = $iq({type: 'set'}) | 71 const iq = $iq({type: 'set'}) |
72 .c('pubsub', {xmlns: NS.pubsub_owner}) | 72 .c('pubsub', {xmlns: NS.pubsub_owner}) |
73 .c('delete', {node: node}); | 73 .c('delete', {node: node}); |