- yWeb: unify rec/zap timer handling; avoid german umlaut in js-popup

This commit is contained in:
svenhoefer
2017-03-01 11:51:25 +01:00
parent 2d30ef10d8
commit 5edc857122
10 changed files with 36 additions and 34 deletions

View File

@@ -412,11 +412,16 @@ function dbox_popup(_msg)
{
return loadSyncURL("/control/message?popup="+_msg);
}
function dbox_set_timer(_channel_id, _start, _stop)
function dbox_set_timer_rec(_channel_id, _start, _stop)
{
var _url = "/control/timer?action=new&type=5&alarm="+_start+"&stop="+_stop+"&announce="+_start+"&channel_id="+_channel_id+"&rs=1";
return loadSyncURL(_url);
}
function dbox_set_timer_zap(_channel_id, _start)
{
var _url = "/control/timer?action=new&type=3&alarm="+_start+"&channel_id="+_channel_id;
return loadSyncURL(_url);
}
function dbox_zapto(_channel_id)
{
var _url = "/control/zapto?"+_channel_id;