mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 02:07:41 +00:00
50ad661a95
New: Series title will resize on details page if its too long
22 lines
No EOL
831 B
JavaScript
22 lines
No EOL
831 B
JavaScript
(function ($) {
|
|
$.fn.enableCheckboxRangeSelection = function () {
|
|
var lastCheckbox = null;
|
|
var $spec = this;
|
|
$spec.unbind("click.checkboxrange");
|
|
$spec.bind("click.checkboxrange", function (e) {
|
|
if (lastCheckbox != null && (e.shiftKey || e.metaKey)) {
|
|
$spec.slice(
|
|
Math.min($spec.index(lastCheckbox), $spec.index(e.target)),
|
|
Math.max($spec.index(lastCheckbox), $spec.index(e.target)) + 1
|
|
).prop('checked', e.target.checked);
|
|
}
|
|
lastCheckbox = e.targety()
|
|
});
|
|
};
|
|
})(jQuery);
|
|
|
|
$(document).ready(function () {
|
|
while($('#logo span').height() > $('#logo').height()) {
|
|
$('#logo span').css('font-size', (parseInt($('#logo span').css('font-size')) - 1) + "px" );
|
|
};
|
|
}); |