diff --git a/var/mongoose/cgi-bin/browse.jim b/var/mongoose/cgi-bin/browse.jim index c6da53b..c12a753 100755 --- a/var/mongoose/cgi-bin/browse.jim +++ b/var/mongoose/cgi-bin/browse.jim @@ -185,6 +185,7 @@ puts {
  • Toggle Lock
  • Rename
  • Change Title
  • +
  • Download
  • @@ -226,6 +227,10 @@ function (action, el, pos) confirm_action('change the lock on', lock_callback, ts, did); break; + case 'download': + window.location.href = ts; + break; + default: alert('Unhandled action: ' + action); break; @@ -292,8 +297,11 @@ function (action, el, pos) height: 600, width: 700, show: 'scale', hide: 'fade', draggable: true, resizable: true, - buttons: { "Close": - function() {$(this).dialog('close');}}, + buttons: { + "Close": function() { + $(this).dialog('close'); + } + }, close: function(e,u) { $('#dialogue').empty().html( 'loading'); } }); diff --git a/var/mongoose/cgi-bin/status.jim b/var/mongoose/cgi-bin/status.jim index 94e35f8..50c5b87 100755 --- a/var/mongoose/cgi-bin/status.jim +++ b/var/mongoose/cgi-bin/status.jim @@ -43,9 +43,8 @@ foreach line $lines { incr seen($name) - lappend output "$mode $name" + lappend output " + $mode $name
    " } if {[llength $output]} { diff --git a/var/mongoose/include/diskspace.jim b/var/mongoose/include/diskspace.jim index 131e2b0..1154300 100755 --- a/var/mongoose/include/diskspace.jim +++ b/var/mongoose/include/diskspace.jim @@ -5,7 +5,7 @@ if {[os.gethostname] eq "hosting"} { set used "100GB" set perc "10" } else { - foreach df [split [exec df -h] "\n\r"] { + foreach df [split [exec df -h 2>>/dev/null] "\n\r"] { if [string match *sd*2* $df] { regsub -all -- {[[:space:]]+} $df " " df set fields [split $df]