Revision d2364df7
Added by Stephen Beaver over 9 years ago
src/usr/local/www/pkg_mgr.php | ||
---|---|---|
84 | 84 |
$tab_array[] = array(gettext("Installed Packages"), false, "pkg_mgr_installed.php"); |
85 | 85 |
display_top_tabs($tab_array); |
86 | 86 |
|
87 |
// A crude way to display a "Please wait" message while hte page is loading |
|
88 |
ob_implicit_flush(true); |
|
89 |
print('<div class="temp">'); |
|
90 |
print_info_box(gettext("Please wait while the package data is being retrieved.")); |
|
91 |
echo str_repeat("<!-- -->", 1000); |
|
92 |
print('</div>'); |
|
93 |
ob_end_flush(); |
|
94 |
//flush(); |
|
95 |
|
|
87 | 96 |
$pkg_info = get_pkg_info(); |
97 |
|
|
88 | 98 |
if ($pkg_info) { |
89 | 99 |
// Check categories |
90 | 100 |
$categories = array(); |
... | ... | |
123 | 133 |
} |
124 | 134 |
|
125 | 135 |
$tab_array[] = array(gettext("Other Categories"), $menu_category == "Other" ? true : false, "pkg_mgr.php?category=Other"); |
126 |
|
|
127 |
// if (count($categories) > 1) |
|
128 |
// display_top_tabs($tab_array); |
|
129 | 136 |
} |
130 | 137 |
|
131 | 138 |
if (!$pkg_info || !is_array($pkg_info)):?> |
... | ... | |
204 | 211 |
<a target="_blank" title="<?=gettext("View changelog")?>" href="<?=htmlspecialchars($index['changeloglink'])?>"> |
205 | 212 |
<?=htmlspecialchars($index['version'])?></a> |
206 | 213 |
<?php else:?> |
207 |
<?=htmlspecialchars($index['version'])?>
|
|
214 |
<?=htmlspecialchars($index['version'])?> |
|
208 | 215 |
<?php endif;?> |
209 | 216 |
</td> |
210 | 217 |
<td> |
... | ... | |
271 | 278 |
$(this).show(); |
272 | 279 |
} |
273 | 280 |
} else { |
274 |
$(this).show(); // A blank search string shows all
|
|
281 |
$(this).show(); // A blank search string shows all |
|
275 | 282 |
} |
276 | 283 |
}); |
277 | 284 |
}); |
... | ... | |
293 | 300 |
$("#btnsearch").get(0).click(); |
294 | 301 |
} |
295 | 302 |
}); |
303 |
|
|
304 |
$('.temp').hide(); |
|
296 | 305 |
}); |
297 | 306 |
//]]> |
298 | 307 |
</script> |
Also available in: Unified diff
Added a crude method of displaying a "Please wait" banner.