From c7ec7f98d94e4b4f7fab4143ad45636e4368b4f7 Mon Sep 17 00:00:00 2001 From: Aditya Bansal Date: Fri, 7 Jul 2017 04:29:09 +0530 Subject: [PATCH] compose.js: Use on() instead of deprecated bind(). --- static/js/compose.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/static/js/compose.js b/static/js/compose.js index c9f48604b5..a135604e8e 100644 --- a/static/js/compose.js +++ b/static/js/compose.js @@ -601,10 +601,8 @@ exports.validate = function () { }; exports.initialize = function () { - $('#stream,#subject,#private_message_recipient').bind({ - keyup: update_fade, - change: update_fade, - }); + $('#stream,#subject,#private_message_recipient').on('keyup', update_fade); + $('#stream,#subject,#private_message_recipient').on('change', update_fade); $("#compose form").on("submit", function (e) { e.preventDefault();