mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
TopSlider added for local series searching!
Should be easy to add others (would want to have it close other open ones, I think).
This commit is contained in:
parent
08804208cf
commit
745d9d9355
13 changed files with 241 additions and 78 deletions
|
@ -1,33 +1,30 @@
|
|||
<style>
|
||||
.ui-autocomplete-loading { background: white url('images/ui-anim_basic_16x16.gif') right center no-repeat; }
|
||||
@{ Layout = null; }
|
||||
|
||||
<style type="text/css">
|
||||
@*Specific to each slider*@
|
||||
#seriesSearchSlider {
|
||||
right: 150px;
|
||||
}
|
||||
|
||||
.sliderContent .localSeriesLookup {
|
||||
width: 94%;
|
||||
}
|
||||
|
||||
.sliderContent {
|
||||
height: 53px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<script>
|
||||
$(function () {
|
||||
$("#birds").autocomplete({
|
||||
source: "/Settings/TestResults",
|
||||
minLength: 3,
|
||||
delay: 500,
|
||||
select: function (event, ui) {
|
||||
$(this).val(ui.item.Title);
|
||||
return false;
|
||||
}
|
||||
})
|
||||
.data("autocomplete")._renderItem = function (ul, item) {
|
||||
return $("<li></li>")
|
||||
.data("item.autocomplete", item)
|
||||
.append("<a><strong>" + item.Title + "</strong><br>" + item.FirstAired + "</a>")
|
||||
.appendTo(ul);
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<div class="demo">
|
||||
|
||||
<div class="ui-widget">
|
||||
<label for="birds">Birds: </label>
|
||||
<input id="birds" />
|
||||
<div id="seriesSearchSlider" class="top-slider">
|
||||
<div class="sliderContent">
|
||||
Local Series Search
|
||||
<input class="localSeriesLookup" type="text" />
|
||||
</div>
|
||||
<div class="openCloseWrapper">
|
||||
<div class="sliderButtonContainer">
|
||||
Search<div class="sliderImage sliderClosed"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div><!-- End demo -->
|
Loading…
Add table
Add a link
Reference in a new issue