empty the 'note' field when setting a custom quota on the admin panel

This commit is contained in:
ansuz 2022-03-04 17:34:06 +05:30
parent 2b89eb474a
commit 755228e43c
1 changed files with 3 additions and 1 deletions

View File

@ -517,11 +517,11 @@ define([
note,
h('nav', [set, remove])
]);
var $note = $(note);
var getValues = function () {
var key = $key.val();
var _limit = parseInt($(limit).val());
var _note = $(note).val();
if (key.length !== 44) {
try {
var u = Keys.parseUser(key);
@ -535,6 +535,7 @@ define([
if (isNaN(_limit) || _limit < 0) {
return void UI.warn(Messages.admin_invalLimit);
}
var _note = ($note.val() || "").trim();
return {
key: key,
data: {
@ -585,6 +586,7 @@ define([
}
APP.refreshLimits();
$key.val('');
$note.val('');
});
});