mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +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 () {
|
exports.initialize = function () {
|
||||||
$('#stream,#subject,#private_message_recipient').bind({
|
$('#stream,#subject,#private_message_recipient').on('keyup', update_fade);
|
||||||
keyup: update_fade,
|
$('#stream,#subject,#private_message_recipient').on('change', update_fade);
|
||||||
change: update_fade,
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#compose form").on("submit", function (e) {
|
$("#compose form").on("submit", function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|||||||
Reference in New Issue
Block a user