checkpoint
This commit is contained in:
parent
1b6785375e
commit
d0ec2b1555
|
@ -4,6 +4,6 @@ Section: misc
|
|||
Version: 1.0.10
|
||||
Architecture: mipsel
|
||||
Maintainer: af123@hummypkg.org.uk
|
||||
Depends: webif(>=1.0.13-2)
|
||||
Description: Automatically manage single recording files. [Add 'wage' condition]
|
||||
Depends: webif(>=1.0.14)
|
||||
Description: Automatically manage single recording files. [Web Interface. Multi-folder support.]
|
||||
Tags: http://hummy.tv/forum/threads/3843/
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
.contextMenu li.sweeper a
|
||||
{
|
||||
background-image: url(/plugin/sweeper/img/icon16.png);
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
jscss /plugin/sweeper/browse.js /plugin/sweeper/browse.css
|
||||
|
||||
lappend plugins(dmenu) {sweeper {desc "Sweeper Rules"}}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
plugins.dmenu.sweeper = function(dir) {
|
||||
window.location = '/plugin/sweeper/edit.jim?dir=' + dir;
|
||||
};
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
if {$dir eq [system mediaroot] || [file exists "$dir/.sweeper"]} {
|
||||
lappend icons [_addicon "/plugin/sweeper/img/icon22.png" "Sweeper Rules"]
|
||||
}
|
||||
|
|
@ -15,8 +15,17 @@ header
|
|||
puts "
|
||||
<h3>
|
||||
<img src=img/icon22.png> Sweeper rules for
|
||||
<span class=dir>$dir</span>
|
||||
<span id=pendingnote class=\"blood hidden\">
|
||||
<span class=\"dir hidden\">$dir</span>
|
||||
"
|
||||
# Breadcrumb path
|
||||
set stub ""
|
||||
foreach part [split $dir /] {
|
||||
if {$stub eq "/"} { set name $part } else { set name "/$part" }
|
||||
append stub $name
|
||||
puts "<a href=\"/browse?dir=[cgi_quote_url $stub]\">$name</a>
|
||||
}
|
||||
puts {
|
||||
<span id=pendingnote class="blood hidden">
|
||||
(changes pending, not yet saved.)
|
||||
</span>
|
||||
</h3>
|
||||
|
@ -29,9 +38,7 @@ puts "
|
|||
<button id=b_raw>Toggle raw display</button>
|
||||
</div>
|
||||
<div id=output></div>
|
||||
"
|
||||
|
||||
puts {
|
||||
<div id=rule_template class="hidden">
|
||||
<fieldset class=rule>
|
||||
<legend class=comment>
|
||||
|
|
|
@ -21,7 +21,7 @@ if {![string match "$root/*" $cf]} {
|
|||
}
|
||||
set data [cgi_get data "-"]
|
||||
|
||||
if {$data eq "-"} {
|
||||
if {$data eq "-" || $data eq ""} {
|
||||
if {[file exists $cf]} { file delete $cf }
|
||||
puts "Configuration file $cf deleted."
|
||||
exit
|
||||
|
|
Loading…
Reference in New Issue