LSP tweak to blacklist and whitelist wording
This commit is contained in:
parent
c25cd7f3bf
commit
c21287fe60
1 changed files with 6 additions and 6 deletions
12
lsp/main.js
12
lsp/main.js
|
@ -802,10 +802,10 @@ function limitValueFormat(theLimit) {
|
||||||
case 'geo':
|
case 'geo':
|
||||||
var str;
|
var str;
|
||||||
if (theLimit.value.charAt(0) == '+') {
|
if (theLimit.value.charAt(0) == '+') {
|
||||||
str = 'Only trigger on connections not from:<br>'
|
str = 'Whitelist<br>'
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
str = 'Only trigger on connections from:<br>'
|
str = 'Blacklist<br>'
|
||||||
}
|
}
|
||||||
var values = theLimit.value.substr(1).split(' ');
|
var values = theLimit.value.substr(1).split(' ');
|
||||||
for (var index in values) {
|
for (var index in values) {
|
||||||
|
@ -816,10 +816,10 @@ function limitValueFormat(theLimit) {
|
||||||
case 'host':
|
case 'host':
|
||||||
var str;
|
var str;
|
||||||
if (theLimit.value.charAt(0) == '+') {
|
if (theLimit.value.charAt(0) == '+') {
|
||||||
str = 'Only trigger on connections not from:<br>'
|
str = 'Whitelist<br>'
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
str = 'Only trigger on connections from:<br>'
|
str = 'Blacklist<br>'
|
||||||
}
|
}
|
||||||
return str+theLimit.value.substr(1).split(' ').join(', ');
|
return str+theLimit.value.substr(1).split(' ').join(', ');
|
||||||
break;
|
break;
|
||||||
|
@ -847,9 +847,9 @@ function changeLimitName(limitValue) {
|
||||||
$('#detailed-settings').html('');
|
$('#detailed-settings').html('');
|
||||||
$('#limit-value-label').show();
|
$('#limit-value-label').show();
|
||||||
var $listtype = $('<select>').attr('id','limit-list-type').html(
|
var $listtype = $('<select>').attr('id','limit-list-type').html(
|
||||||
$('<option>').val('-').text('Only trigger on connections from..')
|
$('<option>').val('-').text('Blacklist')
|
||||||
).append(
|
).append(
|
||||||
$('<option>').val('+').text('Only trigger on connections not from..')
|
$('<option>').val('+').text('Whitelist')
|
||||||
).change(function(){
|
).change(function(){
|
||||||
makeLimitValue();
|
makeLimitValue();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue