mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
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:
committed by
Tim Abbott
parent
06691e1e45
commit
f3726db89a
@@ -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"});
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user