empty the 'note' field when setting a custom quota on the admin panel
This commit is contained in:
parent
2b89eb474a
commit
755228e43c
|
@ -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('');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue