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