Skip to content

Commit

Permalink
fix extsearch style
Browse files Browse the repository at this point in the history
  • Loading branch information
TrimmingFool committed Feb 23, 2022
1 parent 0756929 commit d3a9a97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
9 changes: 4 additions & 5 deletions plugins/extsearch/extsearch.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ div#tegLoadTorrents br {clear: left; line-height: 0}

#st_extsearch { overflow: auto }
#exscategory { margin-top: 6px; width: 100px }
#flabel_cont li.teg .label-icon { background-position: 1px; background-image: url(./images/local.png) }
.exteg { background-position: 4px }
.Engineall { background-image: url(./images/search.png) }
.Enginepublic { background-image: url(./images/public.png) }
.Engineprivate { background-image: url(./images/private.png) }
#flabel_cont li.exteg:not(.-_-_-all-_-_-) .label-icon { background-position: 0px 0px; background-image: url(./images/local.png); }
.Engineall { background-image: url(./images/search.png) !important; }
.Enginepublic { background-image: url(./images/public.png) !important; }
.Engineprivate { background-image: url(./images/private.png) !important; }
.bld { color: blue; font-weight: bold; }

@media only screen and (orientation:portrait)
Expand Down
11 changes: 5 additions & 6 deletions plugins/extsearch/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,7 @@ plugin.correctCounter = function(id,count)
if(!data[i].deleted)
count++;
}
$("#"+id+"-c").text(count);
$("#"+id).prop("title",plugin.tegs[id].val+" ("+count+")");
theWebUI.updateLabel($$(id), count);
}
}

Expand Down Expand Up @@ -481,9 +480,9 @@ theWebUI.setExtSearchTag = function( d )
}
var tegId = "extteg_"+plugin.lastTeg;
plugin.lastTeg++;
var el = $("<LI>").attr("id",tegId).addClass("exteg").addClass('Engine'+d.eng).attr("title",str+" (0)").
html(escapeHTML(str) + "&nbsp;(<span id=\"" + tegId + "-c\">0</span>)").
mouseclick(plugin.extTegContextMenu).addClass("cat")
var el = theWebUI.createSelectableLabelElement(tegId, str, plugin.extTegContextMenu)
.addClass('exteg');
el.find('.label-icon').addClass('Engine'+d.eng);
$("#lblf").append( el );
plugin.tegs[tegId] = { "val": str, "what": what, "cat": d.cat, "eng": d.eng, "data": d.data };
theWebUI.switchLabel(el[0]);
Expand Down Expand Up @@ -828,7 +827,7 @@ plugin.onLangLoaded = function()
"<option value='"+ndx+"' id='opt_"+ndx+"'>"+ndx+"</option>";
}
styles +=
(".Engine"+ndx+" {background-image: url(./plugins/extsearch/images/"+ndx+".png); background-repeat: no-repeat}\n");
(".Engine"+ndx+" {background-image: url(./plugins/extsearch/images/"+ndx+".png) !important; background-repeat: no-repeat}\n");
});
if(contPublic.length)
{
Expand Down

0 comments on commit d3a9a97

Please sign in to comment.