mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 12:54:58 +00:00
js: Use ES6 object literal shorthand syntax.
Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -13,8 +13,8 @@ function send_typing_notification_ajax(user_ids_array, operation) {
|
||||
to: JSON.stringify(user_ids_array),
|
||||
op: operation,
|
||||
},
|
||||
success: function () {},
|
||||
error: function (xhr) {
|
||||
success() {},
|
||||
error(xhr) {
|
||||
blueslip.warn("Failed to send typing event: " + xhr.responseText);
|
||||
},
|
||||
});
|
||||
@@ -53,9 +53,9 @@ function notify_server_stop(user_ids_array) {
|
||||
exports.get_recipient = get_user_ids_array;
|
||||
exports.initialize = function () {
|
||||
const worker = {
|
||||
get_current_time: get_current_time,
|
||||
notify_server_start: notify_server_start,
|
||||
notify_server_stop: notify_server_stop,
|
||||
get_current_time,
|
||||
notify_server_start,
|
||||
notify_server_stop,
|
||||
};
|
||||
|
||||
$(document).on("input", "#compose-textarea", () => {
|
||||
|
||||
Reference in New Issue
Block a user