* See the COPYING-README file.
*/
+function setQuota (uid, quota, ready) {
+ $.post(
+ OC.filePath('settings', 'ajax', 'setquota.php'),
+ {username: uid, quota: quota},
+ function (result) {
+ if (ready) {
+ ready(result.data.quota);
+ }
+ }
+ );
+}
+
var UserList = {
useUndo: true,
availableGroups: [],
if (sort) {
UserList.doSort();
}
+
+ quotaSelect.singleSelect();
+ quotaSelect.on('change', function () {
+ var uid = $(this).parent().parent().attr('data-uid');
+ var quota = $(this).val();
+ setQuota(uid, quota);
+ });
},
// From http://my.opera.com/GreyWyvern/blog/show.dml/1671288
alphanum: function(a, b) {
});
});
- function setQuota (uid, quota, ready) {
- $.post(
- OC.filePath('settings', 'ajax', 'setquota.php'),
- {username: uid, quota: quota},
- function (result) {
- if (ready) {
- ready(result.data.quota);
- }
- }
- );
- }
-
$('select[multiple]').each(function (index, element) {
UserList.applyMultiplySelect($(element));
});