update icons
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@549 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
parent
1045587fbd
commit
993958d346
@ -1,11 +1,9 @@
|
||||
Package: webif
|
||||
Priority: optional
|
||||
Section: web
|
||||
Version: 0.8.3-1
|
||||
Version: 0.8.4
|
||||
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.1),ssmtp
|
||||
Replaces: af123-webif
|
||||
Conflicts: af123-webif
|
||||
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.1),ssmtp,anacron
|
||||
Suggests: ffmpeg,webif-iphone,nicesplice
|
||||
Description: An evolving web interface for the Humax.
|
||||
|
@ -33,10 +33,19 @@ proc directory {file bfile} {
|
||||
puts "<img border=0 class=va id=\"img$tbfile\"
|
||||
src=/images/711_1_09_Media_Folder.png>"
|
||||
puts "<input class=\"fs fsdir\" type=checkbox>"
|
||||
puts "<a href=\"$::env(REQUEST_URI)?dir=[cgi_quote_url $file]\"
|
||||
puts "<a class=dbf
|
||||
href=\"$::env(REQUEST_URI)?dir=[cgi_quote_url $file]\"
|
||||
file=\"$file\">"
|
||||
puts "$bfile</a><span class=filesize id=\"$tbfile\">
|
||||
</span></div>"
|
||||
</span>"
|
||||
puts "
|
||||
<a href=#>
|
||||
<img class=\"dopt va\" border=0 width=45
|
||||
src=/images/181_1_00_Help5_OPT_Plus.png>
|
||||
</a>
|
||||
<div class=\"results blood\" style=\"margin: 0 0 0 5em\"></div>
|
||||
"
|
||||
puts "</div>"
|
||||
}
|
||||
|
||||
proc entry {file} {{i 0}} {
|
||||
@ -181,6 +190,11 @@ if $nicesplice {
|
||||
puts {
|
||||
</ul>
|
||||
|
||||
<ul id=doptmenu class=contextMenu>
|
||||
<li class=delete><a href=#delete>Delete</a></li>
|
||||
<li><a href=#rename>Rename</a></li>
|
||||
</ul>
|
||||
|
||||
<div id=renameform title="Rename media file" style="display: none">
|
||||
<form id=renameform_form>
|
||||
<input type=hidden name="renameorig" id="renameorig" value="">
|
||||
@ -217,6 +231,26 @@ puts {
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id=drenameform title="Rename directory" style="display: none">
|
||||
<form id=drenameform_form>
|
||||
<input type=hidden name="renameorig" id="drenameorig" value="">
|
||||
<table border=0>
|
||||
<tr>
|
||||
<th>
|
||||
<label for="drename">
|
||||
<b>New Directory Name</b>
|
||||
</label>
|
||||
</th>
|
||||
<td>
|
||||
<input type=text name="rename" id="drename"
|
||||
value="" size=70 maxlength=255
|
||||
class="text ui-widget-content ui-corner-all">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id=savestreamform title="Save streamed content"
|
||||
style="display: none">
|
||||
<div class=pre id=savestream_detail></div>
|
||||
|
@ -116,6 +116,13 @@ function rename_submit()
|
||||
function() { window.location.reload(true); });
|
||||
}
|
||||
|
||||
function drename_submit()
|
||||
{
|
||||
var s = $('#drenameform_form').serialize();
|
||||
$.get('/cgi-bin/browse/rename.jim?' + s,
|
||||
function() { window.location.reload(true); });
|
||||
}
|
||||
|
||||
function savestream_submit()
|
||||
{
|
||||
var s = $('#savestream_form').serialize();
|
||||
@ -274,6 +281,47 @@ var menuclick = function(action, el, pos)
|
||||
}
|
||||
};
|
||||
|
||||
var dmenuclick = function(action, el, pos)
|
||||
{
|
||||
var direl = $(el).parent().parent();
|
||||
var file = $(el).parent().prevAll('a.dbf').last().attr('file');
|
||||
var bfile = file.replace(/.*\//g, '');
|
||||
bfile = bfile.replace(/[\x00-\x1f]+/g, '');
|
||||
var results = $(el).parent().next('div.results');
|
||||
|
||||
switch (action)
|
||||
{
|
||||
case 'delete':
|
||||
var url = '/cgi-bin/browse/delete.jim?file=' +
|
||||
encodeURIComponent(file) + '&type=dir';
|
||||
|
||||
if (confirm('Are you sure you wish to delete "' + file +
|
||||
'" and all files within it?'))
|
||||
{
|
||||
$(results)
|
||||
.html('<img src=/img/loading.gif>' +
|
||||
'Deleting, please wait...')
|
||||
.slideDown('slow')
|
||||
.load(url, function() {
|
||||
$(direl).delay(3000).slideUp(300, function() {
|
||||
$(direl).remove();
|
||||
});
|
||||
});
|
||||
}
|
||||
break;
|
||||
|
||||
case 'rename':
|
||||
$('#drename').val(bfile);
|
||||
$('#drenameorig').val(file);
|
||||
$('#drenameform').dialog('open');
|
||||
break;
|
||||
|
||||
default:
|
||||
alert('Unhandled action: ' + action);
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
// Bind context menu to opt+ image
|
||||
$('img.opt').contextMenu(
|
||||
{
|
||||
@ -284,6 +332,14 @@ var menuclick = function(action, el, pos)
|
||||
menuclick
|
||||
);
|
||||
|
||||
$('img.dopt').contextMenu(
|
||||
{
|
||||
menu: 'doptmenu',
|
||||
leftButton: true,
|
||||
},
|
||||
dmenuclick
|
||||
);
|
||||
|
||||
// Disable items which are not yet implemented.
|
||||
$('#optmenu').disableContextMenuItems('#title');
|
||||
|
||||
@ -327,6 +383,19 @@ var menuclick = function(action, el, pos)
|
||||
close: function() { $('#rename').val(''); }
|
||||
});
|
||||
|
||||
$('#drenameform').dialog({
|
||||
autoOpen: false,
|
||||
height: 'auto', width: 'auto',
|
||||
modal: true,
|
||||
buttons: {
|
||||
"Update": drename_submit,
|
||||
"Close": function() {
|
||||
$(this).dialog('close');
|
||||
}
|
||||
},
|
||||
close: function() { $('#drename').val(''); }
|
||||
});
|
||||
|
||||
$('#savestreamform').dialog({
|
||||
autoOpen: false,
|
||||
height: 'auto', width: 'auto',
|
||||
|
@ -20,9 +20,13 @@ if {$type eq "ts"} {
|
||||
puts "Problem deleting $file, [$ts get error]"
|
||||
}
|
||||
exit
|
||||
} elseif {$type eq "dir"} {
|
||||
puts -nonewline "Directory..."
|
||||
puts [exec /mod/bin/busybox/rm -rf $file]
|
||||
puts -nonewline "Done..."
|
||||
} else {
|
||||
file delete $file
|
||||
file delete "[file rootname $file].hmi"
|
||||
puts "Successfully deleted $file."
|
||||
}
|
||||
|
||||
file delete $file
|
||||
file delete "[file rootname $file].hmi"
|
||||
puts "Successfully deleted $file."
|
||||
|
||||
|
1
var/mongoose/html/img/channels/Channel 5 + 1.png
Symbolic link
1
var/mongoose/html/img/channels/Channel 5 + 1.png
Symbolic link
@ -0,0 +1 @@
|
||||
Channel 5 +1.png
|
BIN
var/mongoose/html/img/channels/Channel 5 +1.png
Normal file
BIN
var/mongoose/html/img/channels/Channel 5 +1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.4 KiB |
1
var/mongoose/html/img/channels/Channel 5+1.png
Symbolic link
1
var/mongoose/html/img/channels/Channel 5+1.png
Symbolic link
@ -0,0 +1 @@
|
||||
Channel 5 +1.png
|
1
var/mongoose/html/img/channels/TOPUP Anytime5.png
Symbolic link
1
var/mongoose/html/img/channels/TOPUP Anytime5.png
Symbolic link
@ -0,0 +1 @@
|
||||
blank.png
|
1
var/mongoose/html/img/channels/TOPUP Anytime6.png
Symbolic link
1
var/mongoose/html/img/channels/TOPUP Anytime6.png
Symbolic link
@ -0,0 +1 @@
|
||||
blank.png
|
BIN
var/mongoose/html/img/channels/The Zone.png
Normal file
BIN
var/mongoose/html/img/channels/The Zone.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
@ -1,7 +1,7 @@
|
||||
|
||||
if {[expr ! [exists -proc cat ]]} {
|
||||
proc cat {file} {
|
||||
if {[catch {set fp [open $file r]]}} { return }
|
||||
if {[catch {set fp [open $file r}]} { return }
|
||||
puts [read $fp]
|
||||
close $fp
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user