diff options
author | Alib <aliboba@free.fr> | 2010-03-18 20:09:51 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-18 20:09:51 +0100 |
commit | e446f61a5ebb437b88e77048a4b58990d5e1fe4a (patch) | |
tree | cedfbfd48a00149bd23af0c1019f73cdf8b0e4ea /js | |
parent | 8397e0f46e8f18a48e4399c989d8e057233196ee (diff) | |
download | istreamdev-e446f61a5ebb437b88e77048a4b58990d5e1fe4a.tar.gz istreamdev-e446f61a5ebb437b88e77048a4b58990d5e1fe4a.tar.bz2 |
default logo for channels ( onerror event)
Diffstat (limited to 'js')
-rw-r--r-- | js/istreamdev.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js index a2a91d1..40ac8ce 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -244,10 +244,10 @@ function gen_channels(category) { function(data){
$.each(data.channel,function(i,channel){
if ( i <= 10 ) {
- $("#chan_menu").append('<li class="channellist"><a class="chan_but" href="#"><img src="logos/' + channel.name + '.png" onerror="this.src=\'img/nologoTV-mini.jpg\'" /><small class="counter">' + channel.number + '</small><span class="name">' + channel.name + '</span><span class="comment">' + channel.now_title + '</span></a></li>');
+ $("#chan_menu").append('<li class="channellist"><a class="chan_but" href="#"><img src="logos/' + channel.name + '.png" onerror="this.style.display=\'none\'" /><small class="counter">' + channel.number + '</small><span class="name">' + channel.name + '</span><span class="comment">' + channel.now_title + '</span></a></li>');
}
else {
- $("#chan_menu").append('<li class="channellist" rel="toggle"><a class="chan_but" href="#"><img src="logos/' + channel.name + '.png"/><small class="counter">' + channel.number + '</small><span class="name">' + channel.name + '</span><span class="comment">' + channel.now_title + '</span></a></li>');
+ $("#chan_menu").append('<li class="channellist" rel="toggle"><a class="chan_but" href="#"><img src="logos/' + channel.name + '.png" onerror="this.style.display=\'none\'" /><small class="counter">' + channel.number + '</small><span class="name">' + channel.name + '</span><span class="comment">' + channel.now_title + '</span></a></li>');
}
});
$('li[rel="toggle"]').hide();
|