usenetbinary-newsreaderquickboxtraktkodistabletvshowsqnaptautullifanartsickbeardtvseriesplexswizzinembyseedboxtvdbnzbgetsubtitlewebui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
863 B
31 lines
863 B
5 years ago
|
function generateAniGroupList() {
|
||
|
$.each(['allow', 'block'], function(i, list) {
|
||
10 years ago
|
var group_list = [];
|
||
10 years ago
|
|
||
10 years ago
|
$('#' + list + ' option').each(function(i, option) {
|
||
|
group_list.push($(option).val());
|
||
10 years ago
|
});
|
||
|
|
||
10 years ago
|
$('#' + list + 'list').val(group_list.join(','));
|
||
|
});
|
||
|
}
|
||
10 years ago
|
|
||
5 years ago
|
$('#add-allow, #add-block').click(function() {
|
||
10 years ago
|
!$('#pool option:selected').remove().appendTo('#' + $(this).attr('id').replace(/add[-]/i, ''));
|
||
10 years ago
|
});
|
||
|
|
||
5 years ago
|
$('#remove-allow, #remove-block').click(function() {
|
||
10 years ago
|
!$('#' + $(this).attr('id').replace(/remove[-]/i, '') + ' option:selected').remove().appendTo('#pool');
|
||
10 years ago
|
});
|
||
|
|
||
5 years ago
|
$('#new-allow, #new-block').click(function() {
|
||
8 years ago
|
var group = $('#addToPoolText').val();
|
||
10 years ago
|
if ('' != group) {
|
||
|
var option = $('<option>');
|
||
8 years ago
|
option.val(group);
|
||
10 years ago
|
option.html(group);
|
||
|
option.appendTo('#' + $(this).attr('id').replace(/new[-]/i, ''));
|
||
8 years ago
|
$('#addToPoolText').val('');
|
||
10 years ago
|
}
|
||
10 years ago
|
});
|