mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-13 06:33:38 +00:00
97429c084f
Change list order of option on the right of the displayShow page to be mostly inline with the order of options on editShow. Change legend wording and text colour on the displayShow page. Add output message if no release group results are available. Add cleansing of text used in the processes to a add a show. Add sorting of AniDB available group results. Add error handling and related UI feedback to reflect result of AniDB communications. Change description of config/search ignore and require words.
30 lines
886 B
JavaScript
30 lines
886 B
JavaScript
function generate_bwlist() {
|
|
$.each(['white', 'black'], function(i, list) {
|
|
var group_list = [];
|
|
|
|
$('#' + list + ' option').each(function(i, option) {
|
|
group_list.push($(option).val());
|
|
});
|
|
|
|
$('#' + list + 'list').val(group_list.join(','));
|
|
});
|
|
}
|
|
|
|
$('#add-white, #add-black').click(function() {
|
|
!$('#pool option:selected').remove().appendTo('#' + $(this).attr('id').replace(/add[-]/i, ''));
|
|
});
|
|
|
|
$('#remove-white, #remove-black').click(function() {
|
|
!$('#' + $(this).attr('id').replace(/remove[-]/i, '') + ' option:selected').remove().appendTo('#pool');
|
|
});
|
|
|
|
$('#new-white, #new-black').click(function() {
|
|
var group = $('#addToPoolText').attr('value');
|
|
if ('' != group) {
|
|
var option = $('<option>');
|
|
option.attr('value', group);
|
|
option.html(group);
|
|
option.appendTo('#' + $(this).attr('id').replace(/new[-]/i, ''));
|
|
$('#addToPoolText').attr('value', '');
|
|
}
|
|
});
|