mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
Hide loading indicators when they're destroyed
(imported from commit e83204771b4ac7c0f0a7b19b6c306440d5cedabb)
This commit is contained in:
@@ -31,7 +31,8 @@ exports.make_loading_indicator = function (container, text) {
|
|||||||
// These width calculations are tied to the spinner width and
|
// These width calculations are tied to the spinner width and
|
||||||
// margins defined via CSS
|
// margins defined via CSS
|
||||||
container.css({width: 38 + text_width,
|
container.css({width: 38 + text_width,
|
||||||
height: 38});
|
height: 38,
|
||||||
|
display: 'block'});
|
||||||
|
|
||||||
var spinner = new Spinner({
|
var spinner = new Spinner({
|
||||||
lines: 8,
|
lines: 8,
|
||||||
@@ -51,7 +52,7 @@ exports.destroy_loading_indicator = function (container) {
|
|||||||
}
|
}
|
||||||
container.removeData("spinner_obj");
|
container.removeData("spinner_obj");
|
||||||
container.empty();
|
container.empty();
|
||||||
container.css({width: 0, height: 0});
|
container.css({width: 0, height: 0, display: 'none'});
|
||||||
};
|
};
|
||||||
|
|
||||||
return exports;
|
return exports;
|
||||||
|
|||||||
Reference in New Issue
Block a user