Differences From Artifact [bd299f0d26]:

To Artifact [a2f0b252f3]:


260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
			return false;
		};
		initLine(n);
		line.parentNode.appendChild(n);
	};
}

function inputListSelected(value, label) {
	var i = g.current_list_input;
	var multiple = i.firstChild.getAttribute('data-multiple');
	var name = i.firstChild.getAttribute('data-name');

	var span = document.createElement('span');
	span.className = 'label';
	span.innerHTML = '<input type="hidden" name="' + name + '[' + value + ']" value="' + label + '" />' + label;
	if (parseInt(multiple, 10) == 1) {
		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);
	}
	i.appendChild(span);
	g.closeDialog();
	i.firstChild.focus();
}

initForm();
</script>
{/literal}

{include file="admin/_foot.tpl"}







<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<





260
261
262
263
264
265
266





















267
268
269
270
271
			return false;
		};
		initLine(n);
		line.parentNode.appendChild(n);
	};
}






















initForm();
</script>
{/literal}

{include file="admin/_foot.tpl"}