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

(drag-and-drop and context menu cut, delete, paste)
This commit is contained in:
moisseev 2019-06-05 19:07:16 +03:00
parent 561c57859d
commit e541b00970

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