js: Replace deprecated jQuery event trigger shorthand.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-20 12:24:26 -07:00
committed by Tim Abbott
parent 4e42137bd9
commit a9ca5f603b
60 changed files with 224 additions and 215 deletions

View File

@@ -18,8 +18,8 @@ exports.open_overlay = function () {
const old_status_text = user_status.get_status_text(user_id);
const field = exports.input_field();
field.val(old_status_text);
field.select();
field.focus();
field.trigger("select");
field.trigger("focus");
exports.toggle_clear_message_button();
const button = exports.submit_button();