mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
yWeb: move data from /src to /data
Origin commit data
------------------
Commit: 29847283ad
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-12-15 (Thu, 15 Dec 2016)
Origin message was:
------------------
- yWeb: move data from /src to /data
This commit is contained in:
46
data/y-web/channels.js
Normal file
46
data/y-web/channels.js
Normal file
@@ -0,0 +1,46 @@
|
||||
function fertig()
|
||||
{
|
||||
for (i=document.getElementById('channels').bchannels.length-1; i >= 0 ; i--) {
|
||||
document.getElementById('channels').bchannels.options[i].selected=true;
|
||||
}
|
||||
document.getElementById('channels').submit();
|
||||
}
|
||||
|
||||
function movechannels(source, destination)
|
||||
{
|
||||
for (i=0; i < source.length; i++) {
|
||||
if (source.options[i].selected==true) {
|
||||
destination.options[destination.length] = new Option(source.options[i].text, source.options[i].value);
|
||||
}
|
||||
}
|
||||
for (i=source.length-1; i >= 0 ; i--) {
|
||||
if (source.options[i].selected==true) {
|
||||
source.options[i] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function poschannel(box, direction)
|
||||
{
|
||||
if (direction==0) {
|
||||
for (i=1; i < box.length ; i++) {
|
||||
if (box.options[i].selected==true) {
|
||||
buffer = new Option(box.options[i].text, box.options[i].value);
|
||||
box.options[i].selected=false;
|
||||
box.options[i]= new Option(box.options[i-1].text, box.options[i-1].value);
|
||||
box.options[i-1]=buffer;
|
||||
box.options[i-1].selected=true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (i=box.length-2; i >= 0 ; i--) {
|
||||
if (box.options[i].selected==true) {
|
||||
buffer = new Option(box.options[i].text, box.options[i].value);
|
||||
box.options[i].selected=false;
|
||||
box.options[i]=new Option(box.options[i+1].text, box.options[i+1].value);
|
||||
box.options[i+1]=buffer;
|
||||
box.options[i+1].selected=true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user