From 9116c6e8a97c206137de7702873938d17c60607c Mon Sep 17 00:00:00 2001 From: hummypkg Date: Thu, 30 Jun 2011 22:10:22 +0000 Subject: [PATCH] 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 --- var/mongoose/cgi-bin/browse/browse.js | 2 +- var/mongoose/cgi-bin/epg_search.jim | 28 +++++++++++++++++++------- var/mongoose/html/img/Folder_New.png | Bin 0 -> 3526 bytes 3 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 var/mongoose/html/img/Folder_New.png diff --git a/var/mongoose/cgi-bin/browse/browse.js b/var/mongoose/cgi-bin/browse/browse.js index 55e053f..6ffb1ae 100755 --- a/var/mongoose/cgi-bin/browse/browse.js +++ b/var/mongoose/cgi-bin/browse/browse.js @@ -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) diff --git a/var/mongoose/cgi-bin/epg_search.jim b/var/mongoose/cgi-bin/epg_search.jim index cbdacf6..26ab4ab 100755 --- a/var/mongoose/cgi-bin/epg_search.jim +++ b/var/mongoose/cgi-bin/epg_search.jim @@ -15,6 +15,27 @@ puts "" 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 ""} { diff --git a/var/mongoose/html/img/Folder_New.png b/var/mongoose/html/img/Folder_New.png new file mode 100644 index 0000000000000000000000000000000000000000..5986b754fd9c25cec8a1585feb438873be2b0005 GIT binary patch literal 3526 zcmV;%4LS0OP)Oz@Z0f2-7z;ux~O9+4z06=<WDR*FRcSTFz- zW=q650N5=6FiBTtNC2?60Km==3$g$R3;-}uh=nNt1bYBr$Ri_o0EC$U6h`t_Jn<{8 z5a%iY0C<_QJh>z}MS)ugEpZ1|S1ukX&Pf+56gFW3VVXcL!g-k)GJ!M?;PcD?0HBc- z5#WRK{dmp}uFlRjj{U%*%WZ25jX z{P*?XzTzZ-GF^d31o+^>%=Ap99M6&ogks$0k4OBs3;+Bb(;~!4V!2o<6ys46agIcq zjPo+3B8fthDa9qy|77CdEc*jK-!%ZRYCZvbku9iQV*~a}ClFY4z~c7+0P?$U!PF=S z1Au6Q;m>#f??3%Vpd|o+W=WE9003S@Bra6Svp>fO002awfhw>;8}z{#EWidF!3EsG z3;bXU&9EIRU@z1_9W=mEXoiz;4lcq~xDGvV5BgyU zp1~-*fe8db$Osc*A=-!mVv1NJjtCc-h4>-CNCXm#Bp}I%6j35eku^v$Qi@a{RY)E3 zJ#qp$hg?Rwkvqr$GJ^buyhkyVfwECO)C{#lxu`c9ghrwZ&}4KmnvWKso6vH!8a<3Q zq36)6Xb;+tK10Vaz~~qUGsJ8#F2=(`u{bOVlVi)VBCHIn#u~6ztOL7=^<&SmcLWlF zMZgI*1b0FpVIDz9SWH+>*hr`#93(Um+6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