use the correct order of magnitude when editing an existing user quota
parent
132b869827
commit
d5970868f7
|
@ -347,7 +347,7 @@ define([
|
|||
var keyEl = h('code.cp-limit-key', key);
|
||||
$(keyEl).click(function () {
|
||||
$('.cp-admin-setlimit-form').find('.cp-setlimit-key').val(key);
|
||||
$('.cp-admin-setlimit-form').find('.cp-setlimit-quota').val(Math.floor(user.limit/1024));
|
||||
$('.cp-admin-setlimit-form').find('.cp-setlimit-quota').val(Math.floor(user.limit / 1024 / 1024));
|
||||
$('.cp-admin-setlimit-form').find('.cp-setlimit-note').val(user.note);
|
||||
});
|
||||
if (compact) {
|
||||
|
|
Loading…
Reference in New Issue