mirror of
https://github.com/moparisthebest/rcrdit
synced 2024-12-22 07:18:56 -05:00
Clicking on the logo now forces a schedule update on the backend. This is temporary until I can get adding recordings to be done through the UI
This commit is contained in:
parent
b7483ec6b3
commit
3c23769504
@ -455,6 +455,14 @@ public class RcrdIt extends ResourceConfig implements AutoCloseable {
|
|||||||
return new GetScheduleResponse(scheduleRequest,channelList);
|
return new GetScheduleResponse(scheduleRequest,channelList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("refreshAutoRecs")
|
||||||
|
//List<Channel>
|
||||||
|
public void refreshAutoRecs() {
|
||||||
|
timer.schedule(new AutoRecTask(), 0);
|
||||||
|
}
|
||||||
|
|
||||||
/* @GET
|
/* @GET
|
||||||
@Path("getSchedule")
|
@Path("getSchedule")
|
||||||
@Produces(MediaType.APPLICATION_JSON)
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id='rcrditHeader'>
|
<div id='rcrditHeader'>
|
||||||
<img src="images/rcrditx128.png" alt='logo'/>
|
<a href="javascript:forceScheduleUpdate();"><img src="images/rcrditx128.png" alt='logo'/></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="guideGoesHere" style='width: 90%'>
|
<div id="guideGoesHere" style='width: 90%'>
|
||||||
|
@ -18,6 +18,20 @@ function padToTwoDigits(ss){
|
|||||||
return ss;
|
return ss;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function forceScheduleUpdate(){
|
||||||
|
$.ajax({
|
||||||
|
url: 'rest/refreshAutoRecs',
|
||||||
|
type: 'post',
|
||||||
|
success: function (data) {
|
||||||
|
alert("Refresh Scheduled");
|
||||||
|
},
|
||||||
|
error: function ( jqXHR, textStatus, errorThrown ){
|
||||||
|
alert(errorThrown);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function getSchedule2(requestObject){
|
function getSchedule2(requestObject){
|
||||||
if(isNull(requestObject)){
|
if(isNull(requestObject)){
|
||||||
|
Loading…
Reference in New Issue
Block a user