mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
compose.js: Use on() instead of deprecated bind().
This commit is contained in:
committed by
Steve Howell
parent
f7e37d37b3
commit
c7ec7f98d9
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user