fix mkdir

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1785 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2014-02-10 23:21:26 +00:00
parent 1984d7151b
commit 98c4182a1f
3 changed files with 10 additions and 11 deletions
CONTROL
var/mongoose/html/sched

@ -1,7 +1,7 @@
Package: webif Package: webif
Priority: optional Priority: optional
Section: web Section: web
Version: 1.0.8-3 Version: 1.0.8-4
Architecture: mipsel Architecture: mipsel
Maintainer: af123@hummypkg.org.uk Maintainer: af123@hummypkg.org.uk
Depends: webif-channelicons(>=1.1.8),mongoose(>=3.0-9),jim(>=0.74-4),jim-oo,jim-sqlite3(>=0.74-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.5-3),smartmontools,tmenu(>=1.05),ffmpeg,id3v2,multienv(>=1.6) Depends: webif-channelicons(>=1.1.8),mongoose(>=3.0-9),jim(>=0.74-4),jim-oo,jim-sqlite3(>=0.74-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.5-3),smartmontools,tmenu(>=1.05),ffmpeg,id3v2,multienv(>=1.6)

@ -15,7 +15,7 @@ set event [rsv slot $table $slot]
# "%*./:<>?\| # "%*./:<>?\|
set dir "[system mediaroot]/[\ set dir "[system mediaroot]/[\
regsub -all {["%*\./:<>?\\|]} [$event get szFPBRecPath] "_"]" regsub -all {["%*\./:<>?\\|]} [$event folder] "_"]"
if {[file exists $dir]} { if {[file exists $dir]} {

@ -147,16 +147,15 @@ function preparemenu(el, menu)
else else
$('#optmenu').disableContextMenuItems('#ar'); $('#optmenu').disableContextMenuItems('#ar');
if ($(el).attr('table') != 'pending' && $(el).attr('reckind') == 4) if ($(el).attr('reckind') == 4)
{
$('#optmenu').enableContextMenuItems('#folder');
$('#optmenu').enableContextMenuItems('#mkfolder'); $('#optmenu').enableContextMenuItems('#mkfolder');
}
else else
{
$('#optmenu').disableContextMenuItems('#folder');
$('#optmenu').disableContextMenuItems('#mkfolder'); $('#optmenu').disableContextMenuItems('#mkfolder');
}
if ($(el).attr('table') != 'pending' && $(el).attr('reckind') == 4)
$('#optmenu').enableContextMenuItems('#folder');
else
$('#optmenu').disableContextMenuItems('#folder');
} }
function menuclick(action, el, pos) function menuclick(action, el, pos)
@ -164,13 +163,13 @@ function menuclick(action, el, pos)
if (!$(el).is("tr")) if (!$(el).is("tr"))
el = $(el).closest('tr'); el = $(el).closest('tr');
var sid = $(el).attr('sid'); var sid = $(el).attr('sid');
var table = $(el).attr('table');
//if (window.console) //if (window.console)
//console.log("Got %s, el: %o, id: %d", action, el, sid); //console.log("Got %s, el: %o, id: %d", action, el, sid);
switch (action) switch (action)
{ {
case 'delete': case 'delete':
var table = $(el).attr('table');
if (confirm('Are you sure you want to delete this entry?')) if (confirm('Are you sure you want to delete this entry?'))
$.get('cancel.jim?slot=' + sid + $.get('cancel.jim?slot=' + sid +
'&table=' + table, '&table=' + table,
@ -202,7 +201,7 @@ function menuclick(action, el, pos)
$('#output') $('#output')
.empty() .empty()
.show('slow') .show('slow')
.load('mkdir.jim?slot=' + sid, .load('mkdir.jim?slot=' + sid + '&table=' + table,
function() { function() {
$(output) $(output)
.css('font-style', 'italic') .css('font-style', 'italic')