str += '</div>';
str += '<form method="post" action="setChannelInfo.php">';
// スキップ
- str += '<div class="prg_channel"><span class="labelLeft">視聴しない:</span>';
+ str += '<div class="prg_channel"><span class="labelLeft">このチャンネルを視聴しない:</span>';
if( skip == 1 ) {
str += '<input type="checkbox" name="n_skip_name" id="id_ch_skip" value="'+skip+'" checked />';
}
chupdate:function() {
var v_sid = $('#id_sid').val();
var v_channel_disc = $('#id_disc').val();
- $.post('channelSetSID.php', { channel_disc: v_channel_disc,
- sid: v_sid }, function(data) {
-
+ var v_hash = $('#id_hash').val();
+ var v_skip = $('#id_ch_skip').attr('checked');
+
+ $.post('setChannelInfo.php', { channel_disc: v_channel_disc,
+ sid: v_sid,
+ skip: v_skip
+ }, function(data) {
+ if(data.match(/^error/i)){
+ alert(data);
+ }
+ else {
+ var old_skip = $('#ch_title_'+v_hash+' .ch_skip').html();
+ if( old_skip != v_skip ) {
+ if( v_skip ) {
+ INISet.num_ch--;
+ $('#ch_title_'+v_hash ).addClass('ch_title_skip');
+ $('#tv_chs_'+v_hash ).addClass('ch_title_skip');
+ }
+ else {
+ INISet.num_ch++;
+ $('#ch_title_'+v_hash ).removeClass('ch_title_skip');
+ $('#tv_chs_'+v_hash ).removeClass('ch_title_skip');
+ }
+ }
+ }
$('#channelDialog').dialog('close');
});
},
}
});
},
- CH_Skip: 1,
+ F_Skip: 1,
chSkipShow:function() {
$('#float_titles').width(INISet.num_all_ch * INISet.ch_width + 80);
$('#tv_chs').width(INISet.num_all_ch * INISet.ch_width );
tvtimes_scroll();
$('#ch_title_bar div.ch_title_skip').show();
$('#tv_chs div.ch_set_skip').show();
- this.CH_Skip = 0;
+ this.F_Skip = 0;
},
chSkipHide:function() {
$('#ch_title_bar div.ch_title_skip').hide();
$('#tv_chs').width( INISet.num_ch * INISet.ch_width );
$('#tvtimes2').css( { left: INISet.num_ch * INISet.ch_width + 40 }).show();
tvtimes_scroll();
- this.CH_Skip = 1;
+ this.F_Skip = 1;
},
toggle:function() {
- if( this.CH_Skip ) {
+ if( this.F_Skip ) {
this.chSkipShow();
}
else {