usenetbinary-newsreaderembyseedboxtvdbnzbgetsubtitlewebuiquickboxtraktkodistabletvshowsqnaptautullifanartsickbeardtvseriesplexswizzin
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.
36 lines
998 B
36 lines
998 B
$(document).ready(function() {
|
|
function setFromPresets (preset) {
|
|
if (preset == 0) {
|
|
$('#customQuality').show();
|
|
return;
|
|
} else {
|
|
$('#customQuality').hide();
|
|
}
|
|
|
|
$('#anyQualities option').each(function(i) {
|
|
var result = preset & $(this).val();
|
|
if (result > 0) {
|
|
$(this).attr('selected', 'selected');
|
|
} else {
|
|
$(this).attr('selected', false);
|
|
}
|
|
});
|
|
|
|
$('#bestQualities option').each(function(i) {
|
|
var result = preset & ($(this).val() << 16);
|
|
if (result > 0) {
|
|
$(this).attr('selected', 'selected');
|
|
} else {
|
|
$(this).attr('selected', false);
|
|
}
|
|
});
|
|
|
|
return;
|
|
}
|
|
|
|
$('#qualityPreset').change(function() {
|
|
setFromPresets($('#qualityPreset :selected').val());
|
|
});
|
|
|
|
setFromPresets($('#qualityPreset :selected').val());
|
|
});
|
|
|