mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
yWeb/Y_Timer: simplify function my_display(); minor formatting changes
Origin commit data
------------------
Commit: 113a90cf6a
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-02-09 (Thu, 09 Feb 2023)
Origin message was:
------------------
- yWeb/Y_Timer: simplify function my_display(); minor formatting changes
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
{=func:set_timer_form {=typ=} {=tid=}=}
|
{=func:set_timer_form {=typ=} {=tid=}=}
|
||||||
{=include-block:Y_Blocks.txt;head_no_charset=}
|
{=include-block:Y_Blocks.txt;head_no_charset=}
|
||||||
{=include-block:Y_Blocks.txt;jQuery=}
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
|
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
|
||||||
|
{=include-block:Y_Blocks.txt;jQuery=}
|
||||||
<script type="text/javascript" src="/Y_Baselib.js"></script>
|
<script type="text/javascript" src="/Y_Baselib.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
function my_display(id, state)
|
function my_display(id, state)
|
||||||
{
|
{
|
||||||
(state) ? jQuery('#'+id).show() : jQuery('#'+id).hide();
|
jQuery('#'+id).toggle(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
function focusNMark()
|
function focusNMark()
|
||||||
@@ -15,6 +15,7 @@ function focusNMark()
|
|||||||
document.f.ad.select();
|
document.f.ad.select();
|
||||||
document.f.ad.focus();
|
document.f.ad.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
function onEventChange()
|
function onEventChange()
|
||||||
{
|
{
|
||||||
tType=document.f.type.value;
|
tType=document.f.type.value;
|
||||||
@@ -28,6 +29,7 @@ function onEventChange()
|
|||||||
my_display("ValuesRow",(tType != "1" && tType!="7"));
|
my_display("ValuesRow",(tType != "1" && tType!="7"));
|
||||||
focusNMark();
|
focusNMark();
|
||||||
}
|
}
|
||||||
|
|
||||||
function onEventChange2()
|
function onEventChange2()
|
||||||
{
|
{
|
||||||
tType=document.f.rep.value;
|
tType=document.f.rep.value;
|
||||||
@@ -37,23 +39,26 @@ function onEventChange2()
|
|||||||
|
|
||||||
function onApidDefChange()
|
function onApidDefChange()
|
||||||
{
|
{
|
||||||
if(document.f.apcf.checked == true)
|
if (document.f.apcf.checked == true)
|
||||||
{
|
{
|
||||||
document.f.apst.checked=false;
|
document.f.apst.checked=false;
|
||||||
document.f.apal.checked=false;
|
document.f.apal.checked=false;
|
||||||
document.f.apac.checked=false;
|
document.f.apac.checked=false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function onApidChange()
|
function onApidChange()
|
||||||
{
|
{
|
||||||
if (document.f.apst.checked == true || document.f.apal.checked == true || document.f.apac.checked == true)
|
if (document.f.apst.checked == true || document.f.apal.checked == true || document.f.apac.checked == true)
|
||||||
document.f.apcf.checked=false;
|
document.f.apcf.checked=false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function do_submit()
|
function do_submit()
|
||||||
{
|
{
|
||||||
show_waitbox(true);
|
show_waitbox(true);
|
||||||
document.f.submit();
|
document.f.submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
function obj_set_select_value(_obj_name, _value)
|
function obj_set_select_value(_obj_name, _value)
|
||||||
{
|
{
|
||||||
var _obj = id(_obj_name);
|
var _obj = id(_obj_name);
|
||||||
@@ -64,6 +69,7 @@ function obj_set_select_value(_obj_name, _value)
|
|||||||
_obj.selectedIndex=i;
|
_obj.selectedIndex=i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function init()
|
function init()
|
||||||
{
|
{
|
||||||
onEventChange();
|
onEventChange();
|
||||||
@@ -112,7 +118,6 @@ function init()
|
|||||||
: <input type="text" name="smi" value="{=stop_min=}" size="2" maxlength="2"/>
|
: <input type="text" name="smi" value="{=stop_min=}" size="2" maxlength="2"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{=L:live.timer_edit.repeat=}</td>
|
<td>{=L:live.timer_edit.repeat=}</td>
|
||||||
<td><select name="rep" onchange="onEventChange2();">
|
<td><select name="rep" onchange="onEventChange2();">
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
<td> </td>
|
<td> </td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{=var-set:row=
|
{=var-set:row=
|
||||||
<tr class="%ctimer">
|
<tr class="%ctimer">
|
||||||
<td>%s</td>
|
<td>%s</td>
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
version=3.0.10
|
version=3.0.11
|
||||||
date=08.02.2023
|
date=09.02.2023
|
||||||
info=NI-Neutrino-Webinterface
|
info=NI-Neutrino-Webinterface
|
||||||
|
Reference in New Issue
Block a user