diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-10-14 17:39:27 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-10-14 17:39:27 +0200 |
commit | c26e9c675aa6c7fec64f63349c6f25ddbe264d7a (patch) | |
tree | 4d21a01723ab779b0bbff1b32cf40d3d92b5970f /apps/user_ldap/js | |
parent | 836f0839e53baa7c7d8561dec1bf0d36813c715d (diff) | |
download | nextcloud-server-c26e9c675aa6c7fec64f63349c6f25ddbe264d7a.tar.gz nextcloud-server-c26e9c675aa6c7fec64f63349c6f25ddbe264d7a.zip |
show Spinner when stuff is being saved
Diffstat (limited to 'apps/user_ldap/js')
-rw-r--r-- | apps/user_ldap/js/settings.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/user_ldap/js/settings.js b/apps/user_ldap/js/settings.js index 6e936a91091..1972447970f 100644 --- a/apps/user_ldap/js/settings.js +++ b/apps/user_ldap/js/settings.js @@ -747,7 +747,10 @@ var LdapWizard = { } }, + saveProcesses: 0, _save: function(object, value) { + $('#ldap .ldap_saving').removeClass('hidden'); + LdapWizard.saveProcesses += 1; param = 'cfgkey='+encodeURIComponent(object.id)+ '&cfgval='+encodeURIComponent(value)+ '&action=save'+ @@ -757,10 +760,14 @@ var LdapWizard = { OC.filePath('user_ldap','ajax','wizard.php'), param, function(result) { + LdapWizard.saveProcesses -= 1; + if(LdapWizard.saveProcesses === 0) { + $('#ldap .ldap_saving').addClass('hidden'); + } if(result.status === 'success') { LdapWizard.processChanges(object); } else { -// alert('Oooooooooooh :('); + console.log('Could not save value for ' + object.id); } } ); |