From 026105b91a72053a98b8b463118a063c5c9c895e Mon Sep 17 00:00:00 2001 From: Sungguk Lim Date: Tue, 20 May 2014 09:08:13 -0400 Subject: [PATCH 1/3] update --- OHTV/base.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/OHTV/base.js b/OHTV/base.js index e01f5e4..ef565ac 100644 --- a/OHTV/base.js +++ b/OHTV/base.js @@ -54,12 +54,9 @@ function menuInit() { menuSelect(0); } +// TODO(sunglim): Rename variable name. Perhaps, index?. function menuSelect(i) { - if (i<=0) { - i = 0; - } else if (i>=opts.length) { - i = opts.length-1; - } + // TODO(sunglim): ASSET(i >= 0 || opts.length < opts.length); selected = i; var scroll = Math.max(0, Math.min(opts.length-13, selected-6)); for (i=0; i Date: Tue, 20 May 2014 09:11:50 -0400 Subject: [PATCH 2/3] update2 --- OHTV/base.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/OHTV/base.js b/OHTV/base.js index ef565ac..3d26311 100644 --- a/OHTV/base.js +++ b/OHTV/base.js @@ -55,13 +55,18 @@ function menuInit() { } // TODO(sunglim): Rename variable name. Perhaps, index?. -function menuSelect(i) { +function menuSelect(index) { // TODO(sunglim): ASSET(i >= 0 || opts.length < opts.length); - selected = i; + if (index <=0) { + index = 0; + } else if (index>=opts.length) { + index = opts.length-1; + } + selected = index; var scroll = Math.max(0, Math.min(opts.length-13, selected-6)); - for (i=0; i=scroll && i=scroll && index Date: Tue, 20 May 2014 09:17:03 -0400 Subject: [PATCH 3/3] update --- OHTV/channellist/index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OHTV/channellist/index.php b/OHTV/channellist/index.php index e7d43fc..5c25d2b 100644 --- a/OHTV/channellist/index.php +++ b/OHTV/channellist/index.php @@ -1,3 +1,5 @@ +// Is this file necessary? +//