summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2013-03-27 12:20:50 +0100
committerMarcel Klehr <mklehr@gmx.net>2013-03-27 12:20:50 +0100
commitbc8d6d4c45f443716d3334e1606cf7664b9a97ac (patch)
treee96e1288a4bf99dc448077452a3b845731bb1bc8 /src
parentc4d9a71156c39d84350230e88ef9ebab148f1a2a (diff)
downloadetherpad-lite-bc8d6d4c45f443716d3334e1606cf7664b9a97ac.zip
/admin/plugins: Add a loading indicator to some messages
Diffstat (limited to 'src')
-rw-r--r--src/static/js/admin/plugins.js2
-rw-r--r--src/templates/admin/plugins.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/static/js/admin/plugins.js b/src/static/js/admin/plugins.js
index bc7a0208..e2e07e96 100644
--- a/src/static/js/admin/plugins.js
+++ b/src/static/js/admin/plugins.js
@@ -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()
diff --git a/src/templates/admin/plugins.html b/src/templates/admin/plugins.html
index 1b69549c..44e6f7a5 100644
--- a/src/templates/admin/plugins.html
+++ b/src/templates/admin/plugins.html
@@ -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>