allow scheduling reminders; flag for reboot after event cancel
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@402 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
parent
7113208940
commit
d29ed50f7f
@ -1,7 +1,7 @@
|
||||
Package: webif
|
||||
Priority: optional
|
||||
Section: web
|
||||
Version: 0.7.0-1
|
||||
Version: 0.7.0-2
|
||||
Architecture: mipsel
|
||||
Maintainer: af123@hummypkg.org.uk
|
||||
Depends: mongoose(>=3.0-2),jim(>=0.71-1),jim-sqlite3(>=0.71-1),jim-cgi(>=0.4),jim-oo,jim-pack,service-control,busybox(>=1.18.3-1),lsof,epg(>=1.0.3),hmt(>=1.0.6),ssmtp
|
||||
|
@ -33,9 +33,9 @@ if {[$event percent] > 0} {
|
||||
|
||||
set r [rsv construct $event $type]
|
||||
if {[catch {$r insert} msg]} {
|
||||
puts "Error encountered while scheduling the recording: <i>$msg</i>"
|
||||
puts "Error encountered while scheduling: <i>$msg</i>"
|
||||
} else {
|
||||
puts "Successfully scheduled recording of <i>[$event get name]</i>"
|
||||
puts "Successfully scheduled <i>[$event get name]</i>"
|
||||
system restartpending
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
package require cgi
|
||||
source /mod/var/mongoose/lib/setup
|
||||
require rsv.class
|
||||
require rsv.class system.class
|
||||
|
||||
puts "Content-Type: text/html"
|
||||
puts ""
|
||||
@ -24,3 +24,5 @@ $event clear_ulslot
|
||||
$event set_delete
|
||||
$event insert
|
||||
|
||||
system restartpending
|
||||
|
||||
|
@ -14,6 +14,7 @@ $(document).ready(function() {
|
||||
.load('/cgi-bin/restartblock.jim');
|
||||
});
|
||||
$(":button:contains('Record')").fadeOut('slow');
|
||||
$(":button:contains('Reminder')").fadeOut('slow');
|
||||
}
|
||||
|
||||
var $buttons1 = {
|
||||
@ -21,6 +22,7 @@ $(document).ready(function() {
|
||||
};
|
||||
var $buttons2 = $.extend(
|
||||
{"Record Programme": function() { doschedule(1) }},
|
||||
{"Set Reminder": function() { doschedule(3) }},
|
||||
$buttons1);
|
||||
var $buttons3 = $.extend(
|
||||
{"Record Series": function() { doschedule(2) }},
|
||||
|
@ -345,6 +345,11 @@ proc {rsv construct} {event type} {
|
||||
$args(szEventToRecord)
|
||||
}
|
||||
}
|
||||
} elseif {$type == 3} {
|
||||
# Reminder
|
||||
set args(ersvtype) 2
|
||||
set args(szsttime) [clock format $args(nsttime) \
|
||||
-format {%Y%m%d%H%M%S}]
|
||||
} else {
|
||||
# Series
|
||||
set args(ucCRIDType) 50
|
||||
|
Loading…
Reference in New Issue
Block a user