git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@639 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2012-01-08 21:10:38 +00:00
parent 84b5cb9506
commit ccb513be49
3 changed files with 8 additions and 2 deletions

View File

@ -4,6 +4,6 @@ Section: web
Version: 0.8.11
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-1),jim-oo,jim-pack,service-control,busybox(>=1.19.3-1),lsof,epg(>=1.0.8),hmt(>=1.1.4),ssmtp,anacron
Depends: mongoose(>=3.0-2),jim(>=0.71-1),jim-sqlite3(>=0.71-1),jim-cgi(>=0.5),jim-oo,jim-pack,service-control,busybox(>=1.19.3-1),lsof,epg(>=1.0.8),hmt(>=1.1.4),ssmtp,anacron
Suggests: ffmpeg,webif-iphone,nicesplice,id3v2
Description: An evolving web interface for the Humax.

View File

@ -611,6 +611,7 @@ var dmenuclick = function(action, el, pos)
$.post('/cgi-bin/browse/clipboard.jim', {
'act': 'add',
'dir': dir,
'mode': action,
'path': files
}, function() {

View File

@ -48,12 +48,17 @@ switch $action {
}
add {
if {[set path [cgi_get path]] eq "0"} {
puts "No path."
chunk "No path."
exit
}
set dir [cgi_unquote_input [cgi_get dir]]
set mode [cgi_get mode copy]
foreach p $path {
set p [cgi_unquote_input $p]
if {$dir ne "0" && ![string match "$dir/*" $p]} {
chunk "$p not in directory<br>"
continue
}
if {![$cb present $p]} {
$cb add $mode $p
chunk "Added $p for $mode<br>"