From: moisseev Date: Wed, 5 Jun 2019 16:07:16 +0000 (+0300) Subject: [WebUI] Scan/Learn: enable/disable buttons on mouse events X-Git-Tag: 2.0~820^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F2917%2Fhead;p=rspamd.git [WebUI] Scan/Learn: enable/disable buttons on mouse events (drag-and-drop and context menu cut, delete, paste) --- diff --git a/interface/js/app/upload.js b/interface/js/app/upload.js index 2837ff666..a89a8a61a 100644 --- a/interface/js/app/upload.js +++ b/interface/js/app/upload.js @@ -151,7 +151,7 @@ define(["jquery"], } $("#scan button").attr("disabled", true); - $("textarea").keyup(function () { + $("textarea").on("input", function () { var $this = $(this); $("#scan button") .prop("disabled", ($.trim($this.val()).length === 0));