yweb/Y_Timer_Edit: minor formatting fixes

Origin commit data
------------------
Branch: ni/coolstream
Commit: 323af546dd
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-01-30 (Mon, 30 Jan 2023)

Origin message was:
------------------
- yweb/Y_Timer_Edit: minor formatting fixes

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2023-01-30 21:05:45 +01:00
parent 859a9008e1
commit aae78d118f

View File

@@ -5,7 +5,11 @@
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function my_display(id,state) {(state)?$(id).show():$(id).hide();}
function my_display(id, state)
{
(state) ? $(id).show() : $(id).hide();
}
function focusNMark()
{
document.f.ad.select();
@@ -42,10 +46,8 @@ function onApidDefChange()
}
function onApidChange()
{
if(document.f.apst.checked == true ||
document.f.apal.checked == true ||
document.f.apac.checked == true)
document.f.apcf.checked=false;
if (document.f.apst.checked == true || document.f.apal.checked == true || document.f.apac.checked == true)
document.f.apcf.checked=false;
}
function do_submit()
{
@@ -55,10 +57,10 @@ function do_submit()
function obj_set_select_value(_obj_name, _value)
{
var _obj = document.getElementById(_obj_name);
if(_obj){
for(i=0;i<_obj.length;i++)
if(_obj.options[i].value == _value)
if (_obj)
{
for (i = 0; i < _obj.length; i++)
if (_obj.options[i].value == _value)
_obj.selectedIndex=i;
}
}
@@ -66,7 +68,7 @@ function init()
{
onEventChange();
onEventChange2();
var rd="{=timer_recordingDir=}";
var rd = "{=timer_recordingDir=}";
obj_set_select_value("rec_dir", rd);
}
//]]>
@@ -170,7 +172,6 @@ function init()
</table>
<br/>
<!-- <input type="button" value="speichern" title="submit and save values" onclick="do_submit()"/>-->
<button type="button" ytype="save" title="submit and save values" onclick="do_submit()">{=L:save=}</button>
<button type="button" ytype="cancel" title="cancel" onclick='window.document.location.href="/Y_Timer_List.yhtm"'>{=L:cancel=}</button>
</form>