Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #544 from thezoggy/dev--qualityChooser_cleanup
qualityChooser cleanup
- Loading branch information
Showing
4 changed files
with
36 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,36 @@ | ||
$(document).ready(function(){ | ||
$(document).ready(function() { | ||
function setFromPresets (preset) { | ||
if (preset == 0) { | ||
$('#customQuality').show(); | ||
return | ||
} else | ||
$('#customQuality').hide(); | ||
|
||
$('#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); | ||
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); | ||
var result = preset & ($(this).val() << 16); | ||
if (result > 0) { | ||
$(this).attr('selected', 'selected'); | ||
} else { | ||
$(this).attr('selected', false); | ||
} | ||
}); | ||
return | ||
|
||
return; | ||
} | ||
$('#qualityPreset').change(function(){ | ||
setFromPresets($('#qualityPreset :selected').val()); | ||
|
||
$('#qualityPreset').change(function() { | ||
setFromPresets($('#qualityPreset :selected').val()); | ||
}); | ||
setFromPresets($('#qualityPreset :selected').val()) | ||
}); | ||
|
||
setFromPresets($('#qualityPreset :selected').val()); | ||
}); |
ec26d43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this commit may have broken the ability to change a quality on an individual show. I have a few in Custom and when I edit the show and attempt to change it from Custom to HD it used to redraw the page and remove the custom selectors and then hitting save would fix this. However with this commit selecting HD from Custom won't remove the selectors nor does SAVE update the quality.
ec26d43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #546