]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Scan/Learn: enable/disable buttons on mouse events 2917/head
authormoisseev <moiseev@mezonplus.ru>
Wed, 5 Jun 2019 16:07:16 +0000 (19:07 +0300)
committermoisseev <moiseev@mezonplus.ru>
Wed, 5 Jun 2019 16:07:16 +0000 (19:07 +0300)
(drag-and-drop and context menu cut, delete, paste)

interface/js/app/upload.js

index 2837ff666a5b9dfcfc2082c1e94d7f742b16bb5a..a89a8a61a3d4288afa63597404aa95d5c921a440 100644 (file)
@@ -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));