improve new folder icon, allow [S]CRID searches from the term box
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@216 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
parent
6efcb5bde0
commit
9116c6e8a9
@ -40,7 +40,7 @@ function set_folder_new(folder, cnt)
|
||||
folder = folder.replace(/ /g, '');
|
||||
folder = folder.replace(/([ #;&,.+*~\':"!^$[\]()=>|\/@])/g, '\\$1');
|
||||
console.log("Folder: (%s) = (%s)", folder, cnt);
|
||||
$('#img' + folder).attr('src', '/images/711_1_09_Media_Folder_C.png');
|
||||
$('#img' + folder).attr('src', '/img/Folder_New.png');
|
||||
}
|
||||
|
||||
function new_folder_callback(data, status, xhr)
|
||||
|
@ -15,6 +15,27 @@ puts "<script type=text/javascript src=/js/highlight.js></script>"
|
||||
cgi_input
|
||||
#cgi_dump
|
||||
|
||||
set ct 0
|
||||
catch { set ct [dict get $_cgi ct] }
|
||||
set crid ""
|
||||
catch { set crid [dict get $_cgi crid] }
|
||||
set scrid ""
|
||||
catch { set scrid [dict get $_cgi scrid] }
|
||||
|
||||
if {[dict exists $_cgi term]} {
|
||||
set lterm [dict get $_cgi term]
|
||||
|
||||
if {[string match {CRID:*} $lterm]} {
|
||||
set crid [string range $lterm 5 end]
|
||||
} elseif {[string match {SCRID:*} $lterm]} {
|
||||
set scrid [string range $lterm 6 end]
|
||||
}
|
||||
} elseif {$crid ne ""} {
|
||||
set _cgi(term) "CRID:$crid"
|
||||
} elseif {$scrid ne ""} {
|
||||
set _cgi(term) "SCRID:$scrid"
|
||||
}
|
||||
|
||||
source /mod/var/mongoose/lib/epg_search
|
||||
|
||||
[spinner new {
|
||||
@ -31,13 +52,6 @@ source /mod/var/mongoose/lib/epg_popup
|
||||
set cmd "search"
|
||||
if {$searchfull} { set cmd "searchall" }
|
||||
|
||||
set ct 0
|
||||
catch { set ct [dict get $_cgi ct] }
|
||||
set crid ""
|
||||
catch { set crid [dict get $_cgi crid] }
|
||||
set scrid ""
|
||||
catch { set scrid [dict get $_cgi scrid] }
|
||||
|
||||
if {$ct > 0 } {
|
||||
set records [epg fetch dump -type $ct]
|
||||
} elseif {$crid ne ""} {
|
||||
|
BIN
var/mongoose/html/img/Folder_New.png
Normal file
BIN
var/mongoose/html/img/Folder_New.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.4 KiB |
Loading…
Reference in New Issue
Block a user