summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-18 20:09:51 +0100
committerAlib <aliboba@free.fr>2010-03-18 20:09:51 +0100
commite446f61a5ebb437b88e77048a4b58990d5e1fe4a (patch)
treecedfbfd48a00149bd23af0c1019f73cdf8b0e4ea /js
parent8397e0f46e8f18a48e4399c989d8e057233196ee (diff)
downloadistreamdev-e446f61a5ebb437b88e77048a4b58990d5e1fe4a.tar.gz
istreamdev-e446f61a5ebb437b88e77048a4b58990d5e1fe4a.tar.bz2
default logo for channels ( onerror event)
Diffstat (limited to 'js')
-rw-r--r--js/istreamdev.js4
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();