mirror of
https://github.com/moparisthebest/rcrdit
synced 2024-12-21 23:08:57 -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);
|
||||
}
|
||||
|
||||
|
||||
@POST
|
||||
@Path("refreshAutoRecs")
|
||||
//List<Channel>
|
||||
public void refreshAutoRecs() {
|
||||
timer.schedule(new AutoRecTask(), 0);
|
||||
}
|
||||
|
||||
/* @GET
|
||||
@Path("getSchedule")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
|
@ -27,7 +27,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id='rcrditHeader'>
|
||||
<img src="images/rcrditx128.png" alt='logo'/>
|
||||
<a href="javascript:forceScheduleUpdate();"><img src="images/rcrditx128.png" alt='logo'/></a>
|
||||
</div>
|
||||
|
||||
<div id="guideGoesHere" style='width: 90%'>
|
||||
|
@ -18,6 +18,20 @@ function padToTwoDigits(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){
|
||||
if(isNull(requestObject)){
|
||||
|
Loading…
Reference in New Issue
Block a user