use the correct order of magnitude when editing an existing user quota

pull/1/head
ansuz 4 years ago
parent 132b869827
commit d5970868f7

@ -347,7 +347,7 @@ define([
var keyEl = h('code.cp-limit-key', key); var keyEl = h('code.cp-limit-key', key);
$(keyEl).click(function () { $(keyEl).click(function () {
$('.cp-admin-setlimit-form').find('.cp-setlimit-key').val(key); $('.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); $('.cp-admin-setlimit-form').find('.cp-setlimit-note').val(user.note);
}); });
if (compact) { if (compact) {

Loading…
Cancel
Save