From a6cfc75a2a66f76fffc1d113032fbe7f819f94e6 Mon Sep 17 00:00:00 2001 From: Alib Date: Wed, 31 Mar 2010 23:40:10 +0200 Subject: fix bug in create media menu --- HISTORY | 1 + js/istreamdev.js | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/HISTORY b/HISTORY index 3f1e502..763eb56 100755 --- a/HISTORY +++ b/HISTORY @@ -4,6 +4,7 @@ xx.xx.2010 - 1.0.1 - Added fix for PHP version < 5.2.0 - added php module check and dynamic loading if possible. +- some client speedups and optimisations 03.29.2010 - 1.0.0 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 = '
  • Video
  • '; - home_filemenu = $('#home #filemenu'); - if ( home_filemenu.length == 0 ) { + if ( $('#home #filemenu').length == 0 ) { $('#home').append(''); } - home_filemenu.append(videomenu); + $('#home #filemenu').append(videomenu); } function addAudiofiles() { audiomenu = '
  • Audio
  • '; - home_filemenu = $('#home #filemenu'); - if ( home_filemenu.length == 0 ) { + if ( $('#home #filemenu').length == 0 ) { $('#home').append(''); } - home_filemenu.append(audiomenu); + $('#home #filemenu').append(audiomenu); } //Goto home -- cgit v1.2.3