From f8aa446030b02a086ee05982aa8c37b3f55bfd2d Mon Sep 17 00:00:00 2001 From: Artur Galyamov Date: Wed, 28 Dec 2022 02:12:01 +0500 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=B2=D0=BE=D0=B4=D0=B8=D0=BC=20?= =?UTF-8?q?=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D1=83=20=D0=BF=D0=BE=D0=B4=D0=B5?= =?UTF-8?q?=D0=BB=D0=B8=D1=82=D1=8C=D1=81=D1=8F=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D0=BB=D1=8E=D0=B1=D0=BE=D0=BC=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B8=20=D0=B2=20=D0=BF=D0=BE=D0=BB=D0=B5=20?= =?UTF-8?q?=D0=B2=D0=B2=D0=BE=D0=B4=D0=B0=20#28?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cms/templates/articles/new.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cms/templates/articles/new.html b/cms/templates/articles/new.html index 6666301..a836664 100644 --- a/cms/templates/articles/new.html +++ b/cms/templates/articles/new.html @@ -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)))) }) {% endblock %} \ No newline at end of file