mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 03:53:50 +00:00 
			
		
		
		
	ui: Fix loading spinner glitch.
On calling `loading.make_indicator` for the second
time or more no spinner is being displayed.
This bug can be viewed on visiting a `near: 1` narrow
and the spinner for the newer messages is displayed
only once (i.e. the first time it is rendered), while
the logo is displayed every time.
This happens because `loading.destroy_indicator` sets
the css of that container to display: "none". This can
be removed as we are emptying the container just above.
Introduced in 953d475274.
			
			
This commit is contained in:
		| @@ -59,7 +59,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}); | ||||
| }; | ||||
|  | ||||
| window.loading = exports; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user