diff --git a/var/mongoose/cgi-bin/backup/backup.js b/var/mongoose/cgi-bin/backup/backup.js index 906bd44..944677f 100755 --- a/var/mongoose/cgi-bin/backup/backup.js +++ b/var/mongoose/cgi-bin/backup/backup.js @@ -27,7 +27,7 @@ $(document).ready(function() { }); }); $('#delete_button').click(function() { - var backup = $('input.restore').val(); + var backup = $('input.restore:checked').val(); if (confirm('Confirm deletion of ' + backup)) { $('#results').load('/cgi-bin/backup/delete.jim?' + @@ -39,7 +39,7 @@ $(document).ready(function() { } }); $('#restore_button').click(function() { - var backup = $('input.restore').val(); + var backup = $('input.restore:checked').val(); if (confirm('!!!!!!!!!!!!!!!!!!!!!!!!! PLEASE CONFIRM !!!!!!!!!!!!!!!!!!!!!!!!!\n\nAre you sure you wish to erase all scheduled recordings and favourite channels and then restore them from\n' + backup + '?')) { $('#restore_working').slideDown(); diff --git a/var/mongoose/cgi-bin/settings.jim b/var/mongoose/cgi-bin/settings.jim index 132c432..2f14024 100755 --- a/var/mongoose/cgi-bin/settings.jim +++ b/var/mongoose/cgi-bin/settings.jim @@ -16,6 +16,7 @@ set settings [settings new] set hostname [$settings hostname] set smtp_server [$settings smtp_server] set channel_group [$settings channel_group] +set epg_style [$settings epg_style] set pkgdev [$settings pkgdev] # Handle updates @@ -51,6 +52,7 @@ proc handle_str_update {var old {text "Value"}} { handle_str_update hostname $hostname Hostname _handle_update ascii smtp_server $smtp_server "SMTP Server" handle_int_update channel_group $channel_group "Channel Group" +handle_str_update epg_style $epg_style "EPG Type" if {[dict exists $_cgi pkgdevoff] && ![dict exists $_cgi pkgdev]} { set _cgi(pkgdev) 0 } @@ -107,13 +109,36 @@ puts " " +puts " +