mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
Origin commit data
------------------
Branch: ni/coolstream
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
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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;
|
|
}
|
|
}
|
|
}
|
|
}
|