diff --git a/CONTROL/conffiles b/CONTROL/conffiles new file mode 100644 index 00000000..76177b5f --- /dev/null +++ b/CONTROL/conffiles @@ -0,0 +1 @@ +var/mongoose/html/css/EXTRA.css diff --git a/CONTROL/control b/CONTROL/control index e27b0a5b..b0c2837f 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 1.0.6-2 +Version: 1.0.6-3 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: webif-channelicons(>=1.1.4),mongoose(>=3.0-9),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73-1),jim-cgi(>=0.7),jim-binary,service-control(>=1.2),busybox(>=1.20.2-1),lsof,epg(>=1.0.13),hmt(>=1.1.14),ssmtp,anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2),stripts(>=1.2.3),smartmontools,tmenu(>=1.05),ffmpeg,id3v2,multienv(>=1.6) diff --git a/CONTROL/postinst b/CONTROL/postinst index 8c50f054..cda337b0 100755 --- a/CONTROL/postinst +++ b/CONTROL/postinst @@ -37,6 +37,7 @@ if [ ! -f /mod/webif/.strip-updated ]; then fi /mod/webif/lib/bin/diskattrs +var/mongoose/lib/bin/resetnew [ -f $tmpf ] && rm -f $tmpf diff --git a/var/mongoose/cgi-bin/settings.jim b/var/mongoose/cgi-bin/settings.jim index 71004340..2298c855 100755 --- a/var/mongoose/cgi-bin/settings.jim +++ b/var/mongoose/cgi-bin/settings.jim @@ -40,6 +40,7 @@ set pkgdev [$settings pkgdev] set notoolbar [$settings notoolbar] set nomobile [$settings nomobile] set nohelplinks [$settings nohelplinks] +set nounwatchedcount [$settings nounwatchedcount] set xepghours [$settings xepghours] if {$xepghours == 0} { set xepghours 4 } set genrededup [$settings genrededup] @@ -84,6 +85,7 @@ handle_int_update pkgdev $pkgdev "Development Package Display" handle_int_update notoolbar $notoolbar "Disable toolbar" handle_int_update nomobile $nomobile "Disable mobile link" handle_int_update nohelplinks $nohelplinks "Disable help links" +handle_int_update nounwatchedcount $nounwatchedcount "Disable unwatched count" handle_int_update genrededup $genrededup "Genre search dedup" handle_int_update autolog $autolog "Auto-processing log level" @@ -171,6 +173,7 @@ setting_toggle "HTTPS web server?" "https" \ setting_toggle "Slide-down toolbar?" "notoolbar" $(!$notoolbar) 1 setting_toggle "Mobile link on main page?" "nomobile" $(!$nomobile) 1 setting_toggle "Help links on main page?" "nohelplinks" $(!$nohelplinks) 1 +setting_toggle "Unwatched count on folders?" "nounwatchedcount" $(!$nounwatchedcount) 1 puts -nonewline " diff --git a/var/mongoose/cgi-bin/xepg.js b/var/mongoose/cgi-bin/xepg.js index b26af2b5..531dfa02 100644 --- a/var/mongoose/cgi-bin/xepg.js +++ b/var/mongoose/cgi-bin/xepg.js @@ -9,15 +9,13 @@ $('button.nav').click(function() { '&pos=' + $('#xegrid').scrollTop(); }); -var now = new Date().getTime(); - $('#xepg_dp').datepicker({ buttonImage: '/img/cal.gif', buttonImageOnly: true, showOn: 'button', dateFormat: '@', - minDate: now, - maxDate: now + 7 * 86400, + minDate: 0, + maxDate: 8, onSelect: function(val, sel) { var stt = $(this).attr('stt'); // Extract date part diff --git a/var/mongoose/html/browse/index.jim b/var/mongoose/html/browse/index.jim index c095c24f..3523a6d8 100755 --- a/var/mongoose/html/browse/index.jim +++ b/var/mongoose/html/browse/index.jim @@ -20,13 +20,17 @@ if {![dict exists $env REQUEST_URI]} { if {![dict exists $env QUERY_STRING]} { set env(QUERY_STRING) "root" } +set config [settings new] + set order [cgi_get order -] if {$order eq "-"} { - set order [[settings new] sortorder] + set order [$config sortorder] } else { - [settings new] sortorder $order + $config sortorder $order } +set nofcount [$config nounwatchedcount] + set model [system model] set dustbin [system dustbin 1] @@ -43,7 +47,7 @@ proc directory {file bfile tbfile} { set img "/images/711_1_09_Media_Folder.png" if {$bfile eq $::dustbin} { set img "/img/Dustbin_Folder.png" } puts "" - puts "" + if {!$::nofcount} { puts "" } puts "" puts "