232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
|
var btn = document.createElement('button');
btn.className = 'icn-btn';
btn.type = 'button';
btn.setAttribute('data-icon', '✘');
btn.onclick = () => span.parentNode.removeChild(span);
span.appendChild(btn);
}
else {
i.removeChild(i.querySelector('span'));
}
i.appendChild(span);
g.closeDialog();
i.firstChild.focus();
};
|
|
|
|
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
|
var btn = document.createElement('button');
btn.className = 'icn-btn';
btn.type = 'button';
btn.setAttribute('data-icon', '✘');
btn.onclick = () => span.parentNode.removeChild(span);
span.appendChild(btn);
}
else if (old = i.querySelector('span')) {
i.removeChild(old);
}
i.appendChild(span);
g.closeDialog();
i.firstChild.focus();
};
|