mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-05 17:05:03 -05:00
31 lines
813 B
JavaScript
31 lines
813 B
JavaScript
$(document).ready(function(){
|
|
$('.seasonCheck').click(function(){
|
|
var seasCheck = this;
|
|
var seasNo = $(seasCheck).attr('id');
|
|
|
|
$('.epCheck:visible').each(function(){
|
|
var epParts = $(this).attr('id').split('x')
|
|
|
|
if (epParts[0] == seasNo) {
|
|
this.checked = seasCheck.checked
|
|
}
|
|
});
|
|
});
|
|
|
|
$('input[type=submit]').click(function(){
|
|
var epArr = new Array()
|
|
|
|
$('.epCheck').each(function() {
|
|
if (this.checked == true) {
|
|
epArr.push($(this).attr('id'))
|
|
}
|
|
});
|
|
|
|
if (epArr.length == 0)
|
|
return false
|
|
|
|
url = sbRoot+'/home/doRename?show='+$('#showID').attr('value')+'&eps='+epArr.join('|')
|
|
window.location.href = url
|
|
});
|
|
|
|
}); |