[Pkg-owncloud-commits] [owncloud] 05/44: Added loading spinner to users list on scroll
David Prévot
taffit at moszumanska.debian.org
Fri Mar 7 13:27:23 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit a0feffb2a786c886e2cba2725d749f76493eaf61
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Tue Feb 18 10:52:05 2014 +0100
Added loading spinner to users list on scroll
---
settings/js/users.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/settings/js/users.js b/settings/js/users.js
index 8b98e59..e50a9bd 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -223,6 +223,7 @@ var UserList = {
if (UserList.updating) {
return;
}
+ $('table+.loading').css('visibility', 'visible');
UserList.updating = true;
$.get(OC.Router.generate('settings_ajax_userlist', { offset: UserList.offset, limit: UserList.usersToLoad }), function (result) {
var loadedUsers = 0;
@@ -242,9 +243,11 @@ var UserList = {
});
if (result.data.length > 0) {
UserList.doSort();
+ $('table+.loading').css('visibility', 'hidden');
}
else {
UserList.noMoreEntries = true;
+ $('table+.loading').remove();
}
UserList.offset += loadedUsers;
// animate
@@ -371,6 +374,7 @@ $(document).ready(function () {
OC.Router.registerLoadedCallback(function() {
$(window).scroll(function(e) {UserList._onScroll(e);});
});
+ $('table').after($('<div class="loading" style="height: 200px; visibility: hidden;"></div>'));
$('select[multiple]').each(function (index, element) {
UserList.applyMultiplySelect($(element));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list