add schedule cleanup button

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1699 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg
2013-10-07 20:17:22 +00:00
parent f7ab52698d
commit abc7d0655e
4 changed files with 46 additions and 1 deletions

View File

@@ -205,5 +205,12 @@ $('table.schedule tbody tr').hover(
$('a.smenu')
.contextMenu({menu: 'optmenu', leftButton: true, beforeShow: preparemenu}, menuclick);
$('#schedule_cleanup').bind('click', function(e) {
if (confirm('Are you sure you want to remove all finished recordings?'))
$.get('cleanup.jim',
function() { window.location.reload(true);
});
});
});