mirror of https://github.com/zulip/zulip.git
compose.js: Use on() instead of deprecated bind().
This commit is contained in:
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();
|
||||||
|
|
Loading…
Reference in New Issue