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