Bug 626358: No loading indicator anymore on Get Addons pane. r=dtownsend, a=blocks-final

This commit is contained in:
Blair McBride 2011-01-20 13:47:37 -08:00
Родитель f687a30b17
Коммит ab4ce354c6
2 изменённых файлов: 9 добавлений и 4 удалений

Просмотреть файл

@ -253,10 +253,10 @@
<box id="view-port-container" flex="1"> <box id="view-port-container" flex="1">
<!-- view port --> <!-- view port -->
<deck id="view-port" flex="1"> <deck id="view-port" flex="1" selectedIndex="0">
<!-- discover view --> <!-- discover view -->
<deck id="discover-view" flex="1" class="view-pane"> <deck id="discover-view" flex="1" class="view-pane" selectedIndex="0">
<vbox id="discover-loading" align="center" pack="stretch" flex="1" class="alert-container"> <vbox id="discover-loading" align="center" pack="stretch" flex="1" class="alert-container">
<spacer class="alert-spacer-before"/> <spacer class="alert-spacer-before"/>
<hbox class="alert loading" align="center"> <hbox class="alert loading" align="center">

Просмотреть файл

@ -141,8 +141,13 @@ function testHash(aBrowser, aCallback) {
} }
function isLoading() { function isLoading() {
return gManagerWindow.document.getElementById("discover-view").selectedPanel == var loading = gManagerWindow.document.getElementById("discover-view").selectedPanel ==
gManagerWindow.document.getElementById("discover-loading"); gManagerWindow.document.getElementById("discover-loading");
if (loading) {
is_element_visible(gManagerWindow.document.querySelector("#discover-loading .loading"),
"Loading message should be visible when its panel is the selected panel");
}
return loading;
} }
function isError() { function isError() {