compose.js: Use on() instead of deprecated bind().

This commit is contained in:
Aditya Bansal 2017-07-07 04:29:09 +05:30 committed by Steve Howell
parent f7e37d37b3
commit c7ec7f98d9
1 changed files with 2 additions and 4 deletions

View File

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