mirror of
https://github.com/rspamd/rspamd.git
synced 2024-09-13 15:45:47 +02:00
[WebUI] Scan/Learn: enable/disable buttons on mouse events
(drag-and-drop and context menu cut, delete, paste)
This commit is contained in:
parent
561c57859d
commit
e541b00970
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user