mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Series Editor updated
New: Series Editor controls are always visible New: Can shift-click to select series in editor Fixed: Maximum form elements increased
This commit is contained in:
parent
ad47bd275b
commit
c181096b51
12 changed files with 2308 additions and 754 deletions
16
NzbDrone.Web/Scripts/NzbDrone/common.js
Normal file
16
NzbDrone.Web/Scripts/NzbDrone/common.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
(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.target;
|
||||
});
|
||||
};
|
||||
})(jQuery);
|
Loading…
Add table
Add a link
Reference in a new issue