summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-10-14 17:39:27 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-10-14 17:39:27 +0200
commitc26e9c675aa6c7fec64f63349c6f25ddbe264d7a (patch)
tree4d21a01723ab779b0bbff1b32cf40d3d92b5970f /apps/user_ldap
parent836f0839e53baa7c7d8561dec1bf0d36813c715d (diff)
downloadnextcloud-server-c26e9c675aa6c7fec64f63349c6f25ddbe264d7a.tar.gz
nextcloud-server-c26e9c675aa6c7fec64f63349c6f25ddbe264d7a.zip
show Spinner when stuff is being saved
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/css/settings.css8
-rw-r--r--apps/user_ldap/js/settings.js9
-rw-r--r--apps/user_ldap/templates/part.wizardcontrols.php1
3 files changed, 17 insertions, 1 deletions
diff --git a/apps/user_ldap/css/settings.css b/apps/user_ldap/css/settings.css
index 0dfcf474256..2353bfe1bfd 100644
--- a/apps/user_ldap/css/settings.css
+++ b/apps/user_ldap/css/settings.css
@@ -123,6 +123,14 @@ select[multiple=multiple] + button {
max-width: 40%;
}
+#ldap .ldap_saving {
+ margin-right: 15px;
+ color: orange;
+ font-weight: bold;
+}
+
+#ldap .ldap_saving img { height: 15px; }
+
.ldap_config_state_indicator_sign {
display: inline-block;
height: 16px;
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);
}
}
);
diff --git a/apps/user_ldap/templates/part.wizardcontrols.php b/apps/user_ldap/templates/part.wizardcontrols.php
index 33e1614c9c6..90d558e72d1 100644
--- a/apps/user_ldap/templates/part.wizardcontrols.php
+++ b/apps/user_ldap/templates/part.wizardcontrols.php
@@ -1,4 +1,5 @@
<div class="ldapWizardControls">
+ <span class="ldap_saving hidden"><?php p($l->t('Saving'));?> <img class="wizSpinner" src="<?php p(image_path('core', 'loading.gif')); ?>"/></span>
<span class="ldap_config_state_indicator"></span> <span class="ldap_config_state_indicator_sign"></span>
<button class="ldap_action_back invisible" name="ldap_action_back"
type="button">