commit e541b00: [WebUI] Scan/Learn: enable/disable buttons on mouse events

moisseev moiseev at mezonplus.ru
Wed Jun 5 16:14:03 UTC 2019


Author: moisseev
Date: 2019-06-05 19:07:16 +0300
URL: https://github.com/rspamd/rspamd/commit/e541b0097024dd60170de6c2e9926cb9de59123c (refs/pull/2917/head)

[WebUI] Scan/Learn: enable/disable buttons on mouse events
(drag-and-drop and context menu cut, delete, paste)

---
 interface/js/app/upload.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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));


More information about the Commits mailing list