summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-31 23:40:10 +0200
committerAlib <aliboba@free.fr>2010-03-31 23:40:10 +0200
commita6cfc75a2a66f76fffc1d113032fbe7f819f94e6 (patch)
tree173cc062542053d0752139a4e7cae05cd9227d74 /js
parent8774bb7891b68a20797884c72591d3d955cf543b (diff)
downloadistreamdev-a6cfc75a2a66f76fffc1d113032fbe7f819f94e6.tar.gz
istreamdev-a6cfc75a2a66f76fffc1d113032fbe7f819f94e6.tar.bz2
fix bug in create media menu
Diffstat (limited to 'js')
-rw-r--r--js/istreamdev.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js
index f59753e..28ef4d1 100644
--- a/js/istreamdev.js
+++ b/js/istreamdev.js
@@ -96,20 +96,18 @@ function addVdr() {
}
function addVideofiles() {
videomenu = '<li class="arrow"><a id="video_but" href="#"><img class="menuicon" src="img/video.png" /><span class="menuname">Video</span></a></li>';
- home_filemenu = $('#home #filemenu');
- if ( home_filemenu.length == 0 ) {
+ if ( $('#home #filemenu').length == 0 ) {
$('#home').append('<ul class="rounded" id="filemenu"><li><span class="menutitle">FILES</span></li></ul>');
}
- home_filemenu.append(videomenu);
+ $('#home #filemenu').append(videomenu);
}
function addAudiofiles() {
audiomenu = '<li class="arrow"><a id="audio_but" href="#"><img class="menuicon" src="img/audio.png" /><span class="menuname">Audio</span></a></li>';
- home_filemenu = $('#home #filemenu');
- if ( home_filemenu.length == 0 ) {
+ if ( $('#home #filemenu').length == 0 ) {
$('#home').append('<ul class="rounded" id="filemenu"><li><span class="menutitle">FILES</span></li></ul>');
}
- home_filemenu.append(audiomenu);
+ $('#home #filemenu').append(audiomenu);
}
//Goto home