diff options
author | Alib <aliboba@free.fr> | 2010-03-18 19:59:15 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-18 19:59:15 +0100 |
commit | 9c90f138480f3ed52297ef5597fbb43bb6a2226f (patch) | |
tree | 57ff2873fcead9fc52ce2f31cd136f1b1707990a /js | |
parent | e26f0a21c62bf4649a8c7934b9caa53c1a4cc6c3 (diff) | |
download | istreamdev-9c90f138480f3ed52297ef5597fbb43bb6a2226f.tar.gz istreamdev-9c90f138480f3ed52297ef5597fbb43bb6a2226f.tar.bz2 |
default logo if it doesn't exist
Diffstat (limited to 'js')
-rw-r--r-- | js/istreamdev.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js index 9eaaaca..a2a91d1 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -244,7 +244,7 @@ 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"/><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.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>');
}
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>');
|