copy_and_paste: Replace deprecated jQuery.fn.bind.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-20 12:50:10 -07:00
committed by Tim Abbott
parent 3510dcbe5e
commit 25883d7827

View File

@@ -329,7 +329,7 @@ exports.paste_handler = function (event) {
};
exports.initialize = function () {
$("#compose-textarea").bind("paste", exports.paste_handler);
$("#compose-textarea").on("paste", exports.paste_handler);
$("body").on("paste", "#message_edit_form", exports.paste_handler);
};