yWeb: drop obsolete channels.js

Origin commit data
------------------
Commit: 774a3b821f
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-02-14 (Tue, 14 Feb 2023)

Origin message was:
------------------
- yWeb: drop obsolete channels.js
This commit is contained in:
vanhofen
2023-02-14 23:56:16 +01:00
parent f001eaab99
commit 04182ac381
3 changed files with 2 additions and 49 deletions

View File

@@ -5,8 +5,7 @@ SUBDIRS += favicon info jquery lcd4linux
installdir = $(PRIVATE_HTTPDDIR)
install_DATA = channels.js \
extensions.txt \
install_DATA = extensions.txt \
favicon.ico \
index.html \
robots.txt \

View File

@@ -1,3 +1,3 @@
version=3.0.17
version=3.0.18
date=14.02.2023
info=NI-Neutrino-Webinterface

View File

@@ -1,46 +0,0 @@
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;
}
}
}
}