summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-12-11 23:23:59 +0100
committerRobin Appelman <icewind1991@gmail.com>2011-12-11 23:34:13 +0100
commitccd9b56609ceb0d5f8470c386702751acfb49994 (patch)
treeab1e9e7f9239512261abe1530e38261065d38a9d /settings/js
parent1746cba249328d92cf22bd81e367dd35dabed60c (diff)
downloadnextcloud-server-ccd9b56609ceb0d5f8470c386702751acfb49994.tar.gz
nextcloud-server-ccd9b56609ceb0d5f8470c386702751acfb49994.zip
after editing a user quota, set the value of the quota field to how the server parsed the input, not the user input
this way the user can see when an invalid input is given
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/users.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/settings/js/users.js b/settings/js/users.js
index 684fee21c64..18e7a9df104 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -101,8 +101,11 @@ $(document).ready(function(){
if($(this).val().length>0){
$.post(
OC.filePath('settings','ajax','setquota.php'),
- {username:uid,quota:$(this).val()},
- function(result){}
+ {username:uid,quota:$(this).val()},
+ function(result){
+ img.parent().children('span').text(result.data.quota)
+ alert(result.data.quota);
+ }
);
input.blur();
}else{