diff options
author | Bjoern Schiessle <schiesbn@woody.(none)> | 2012-06-12 11:18:34 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiesbn@woody.(none)> | 2012-06-12 11:18:34 +0200 |
commit | 1b6dd6628a690cdbc36855ef5b1ff3926023001b (patch) | |
tree | c2763ee3b75e7d4261ce13f5b4e92264fd5c3e32 /settings/js | |
parent | 5e37a103349006c1b29a2f8585a416baab7ee187 (diff) | |
download | nextcloud-server-1b6dd6628a690cdbc36855ef5b1ff3926023001b.tar.gz nextcloud-server-1b6dd6628a690cdbc36855ef5b1ff3926023001b.zip |
applied patch provided by bug #966 to fix broken user specific quota settings
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/users.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index 7c3c3d37b18..f173357749e 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -95,9 +95,9 @@ $(document).ready(function(){ $(this).children('img').click(); }); - $('select.quota').live('change',function(){ + $('select.quota, select.quota-user').live('change',function(){ var select=$(this); - var uid=$(this).parent().parent().data('uid'); + var uid=$(this).parent().parent().parent().data('uid'); var quota=$(this).val(); var other=$(this).next(); if(quota!='other'){ @@ -110,7 +110,7 @@ $(document).ready(function(){ other.focus(); } }); - $('select.quota').each(function(i,select){ + $('select.quota, select.quota-user').each(function(i,select){ $(select).data('previous',$(select).val()); }) @@ -207,9 +207,9 @@ $(document).ready(function(){ applyMultiplySelect(select); $('#content table tbody').last().append(tr); - tr.find('select.quota option').attr('selected',null); - tr.find('select.quota option').first().attr('selected','selected'); - tr.find('select.quota').data('previous','default'); + tr.find('select.quota-user option').attr('selected',null); + tr.find('select.quota-user option').first().attr('selected','selected'); + tr.find('select.quota-user').data('previous','default'); } } ); |