mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
Added a switch to use the new search or not, just in case people do not like it.
added a migration to turn on the new search.
This commit is contained in:
parent
16c94f2414
commit
b2417d8477
10 changed files with 176 additions and 42 deletions
|
@ -24,7 +24,8 @@ Function.prototype.bind = function (parent) {
|
|||
|
||||
$(function () {
|
||||
|
||||
var searchSource = $("#search-template").html();
|
||||
var useNewSearch = $('#useNewSearch').text() == 'True';
|
||||
var searchSource = useNewSearch ? $("#search-templateNew").html() : $("#search-template").html();
|
||||
var seasonsSource = $("#seasons-template").html();
|
||||
var musicSource = $("#music-template").html();
|
||||
var seasonsNumberSource = $("#seasonNumber-template").html();
|
||||
|
@ -470,7 +471,10 @@ $(function () {
|
|||
requested: result.requested,
|
||||
approved: result.approved,
|
||||
available: result.available,
|
||||
url: result.plexUrl
|
||||
url: result.plexUrl,
|
||||
trailer: result.trailer,
|
||||
homepage: result.homepage,
|
||||
releaseDate: Humanize(result.releaseDate)
|
||||
};
|
||||
|
||||
return context;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue