mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
47 lines
1.3 KiB
JavaScript
47 lines
1.3 KiB
JavaScript
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;
|
|
}
|
|
}
|
|
}
|
|
}
|