2014-03-10 01:18:05 -04:00
|
|
|
$(document).ready(function(){
|
|
|
|
$('.seasonCheck').click(function(){
|
|
|
|
var seasCheck = this;
|
|
|
|
var seasNo = $(seasCheck).attr('id');
|
|
|
|
|
|
|
|
$('.epCheck:visible').each(function(){
|
2014-03-20 14:03:22 -04:00
|
|
|
var epParts = $(this).attr('id').split('x')
|
2014-03-10 01:18:05 -04:00
|
|
|
|
|
|
|
if (epParts[0] == seasNo) {
|
|
|
|
this.checked = seasCheck.checked
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$('input[type=submit]').click(function(){
|
2014-03-20 14:03:22 -04:00
|
|
|
var epArr = new Array()
|
2014-03-10 01:18:05 -04:00
|
|
|
|
|
|
|
$('.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
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|