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

@@ -9,14 +9,14 @@ exports.make_indicator = function (outer_container, opts) {
// width calculation, above, returns a result that's a few pixels
// too small. The container's div will be slightly too small,
// but that's probably OK for our purposes.
outer_container.css({'white-space': 'nowrap'});
outer_container.css({"white-space": "nowrap"});
container.empty();
if (opts.abs_positioned !== undefined && opts.abs_positioned) {
// Create some additional containers to facilitate absolutely
// positioned spinners.
const container_id = container.attr('id');
const container_id = container.attr("id");
let inner_container = $('<div id="' + container_id + '_box_container"></div>');
container.append(inner_container);
container = inner_container;
@@ -30,7 +30,7 @@ exports.make_indicator = function (outer_container, opts) {
container.append(spinner_elem);
let text_width = 0;
if (opts.text !== undefined && opts.text !== '') {
if (opts.text !== undefined && opts.text !== "") {
const text_elem = $('<span class="loading_indicator_text"></span>');
text_elem.text(opts.text);
container.append(text_elem);
@@ -60,7 +60,7 @@ exports.destroy_indicator = function (container) {
}
container.removeData("spinner_obj");
container.empty();
container.css({width: 0, height: 0, display: 'none'});
container.css({width: 0, height: 0, display: "none"});
};