|
|
|
@ -44,4 +44,28 @@
|
|
|
|
|
<button type="button" class="t-button t-state-default" onclick="closeSeasonEditor()">Cancel</button>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
<div id="result"></div>
|
|
|
|
|
<div id="result"></div>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
var lastChecked = null;
|
|
|
|
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
$('.chkbox').click(function (event) {
|
|
|
|
|
if (!lastChecked) {
|
|
|
|
|
lastChecked = this;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (event.shiftKey) {
|
|
|
|
|
var start = $('.chkbox').index(this);
|
|
|
|
|
var end = $('.chkbox').index(lastChecked);
|
|
|
|
|
|
|
|
|
|
for (i = Math.min(start, end); i <= Math.max(start, end); i++) {
|
|
|
|
|
$('.chkbox')[i].checked = lastChecked.checked;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
lastChecked = this;
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|