Hide loading indicators when they're destroyed

(imported from commit e83204771b4ac7c0f0a7b19b6c306440d5cedabb)
This commit is contained in:
Zev Benjamin
2013-01-16 15:25:38 -05:00
parent 63d43aa152
commit 1b58e6eb9c

View File

@@ -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;