/admin/plugins: Add a loading indicator to some messages

pull/1672/head
Marcel Klehr 2013-03-27 12:20:50 +01:00
parent c4d9a71156
commit bc8d6d4c45
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ $(document).ready(function () {
show: function(plugin, msg) {
$('.installed-results .'+plugin+' .progress').show()
$('.installed-results .'+plugin+' .progress .message').text(msg)
$(window).scrollTop($('.'+plugin).offset().top-100)
if($(window).scrollTop() > $('.'+plugin).offset().top)$(window).scrollTop($('.'+plugin).offset().top-100)
},
hide: function(plugin) {
$('.installed-results .'+plugin+' .progress').hide()

View File

@ -59,7 +59,7 @@
<tbody class="messages">
<tr><td></td><td>
<p class="nothing-installed">You haven't installed any plugins yet.</p>
<p class="fetching">Fetching installed plugins...</p>
<p class="fetching"><img src="../static/img/loading.gif"/><br/>Fetching installed plugins...</p>
</td><td></td></tr>
</tbody>
</table>
@ -100,7 +100,7 @@
<tr><td></td><td>
<div class="search-progress" class="progress"><img src="../static/img/loading.gif"/></div>
<p class="nothing-found">No plugins found.</p>
<p class="fetching">Fetching catalogue...</p>
<p class="fetching"><img src="../static/img/loading.gif"/><br/>Fetching catalogue...</p>
</td><td></td></tr>
</tbody>
</table>