js: Normalize strings to double quotes.

Prettier would do this anyway, but it’s separated out for a more
reviewable diff.  Generated by ESLint.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-14 16:29:15 -07:00
committed by Tim Abbott
parent 06691e1e45
commit f3726db89a
344 changed files with 14425 additions and 14420 deletions

View File

@@ -11,8 +11,8 @@ function failed_message_success(message_id) {
function resend_message(message, row) {
message.content = message.raw_content;
const retry_spinner = row.find('.refresh-failed-message');
retry_spinner.toggleClass('rotating', true);
const retry_spinner = row.find(".refresh-failed-message");
retry_spinner.toggleClass("rotating", true);
// Always re-set queue_id if we've gotten a new one
// since the time when the message object was initially created
@@ -24,7 +24,7 @@ function resend_message(message, row) {
const message_id = data.id;
const locally_echoed = true;
retry_spinner.toggleClass('rotating', false);
retry_spinner.toggleClass("rotating", false);
compose.send_message_success(local_id, message_id, locally_echoed);
@@ -35,7 +35,7 @@ function resend_message(message, row) {
function on_error(response) {
exports.message_send_error(message.id, response);
setTimeout(() => {
retry_spinner.toggleClass('rotating', false);
retry_spinner.toggleClass("rotating", false);
}, 300);
blueslip.log("Manual resend of message failed");
}
@@ -45,7 +45,7 @@ function resend_message(message, row) {
}
exports.build_display_recipient = function (message) {
if (message.type === 'stream') {
if (message.type === "stream") {
return message.stream;
}
@@ -122,7 +122,7 @@ exports.insert_local_message = function (message_request, local_id_float) {
// NOTE: This will parse synchronously. We're not using the async pipeline
markdown.apply_markdown(message);
message.content_type = 'text/html';
message.content_type = "text/html";
message.sender_email = people.my_current_email();
message.sender_full_name = people.my_full_name();
message.avatar_url = page_params.avatar_url;
@@ -141,7 +141,7 @@ exports.insert_local_message = function (message_request, local_id_float) {
};
exports.is_slash_command = function (content) {
return !content.startsWith('/me') && content.startsWith('/');
return !content.startsWith("/me") && content.startsWith("/");
};
@@ -381,8 +381,8 @@ exports.initialize = function () {
});
}
on_failed_action('remove', abort_message);
on_failed_action('refresh', resend_message);
on_failed_action("remove", abort_message);
on_failed_action("refresh", resend_message);
};
window.echo = exports;