Выводим кнопку поделиться при любом изменении в поле ввода #28
This commit is contained in:
parent
9da6855626
commit
f8aa446030
@ -38,10 +38,10 @@
|
||||
const renderedButton = VK.Share.button(gen)
|
||||
$('#vkShare').html(renderedButton)
|
||||
}
|
||||
|
||||
$('[name="link"]').change((e) => {
|
||||
appendShare($(e.target))
|
||||
})
|
||||
const $linkInput = $('[name="link"]');
|
||||
$linkInput
|
||||
.on('input', (e => appendShare($(e.target))))
|
||||
.on('paste', (e => appendShare($(e.target))))
|
||||
})
|
||||
</script>
|
||||
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user