mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Change search show result 'exists in db' text into a link to display show page.
This commit is contained in:
parent
668c682310
commit
a0a682b02e
3 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
### 0.16.0 (2018-xx-xx xx:xx:xx UTC)
|
||||
|
||||
* Change search show result 'exists in db' text into a link to display show page
|
||||
* Change increase namecache size and fix deleting items from it when at capacity
|
||||
* Change improve security with cross-site request forgery (xsrf) protection on web forms
|
||||
* Change improve security by sending header flags httponly and secure with cookies
|
||||
|
|
|
@ -85,7 +85,7 @@ $(document).ready(function () {
|
|||
Aired: 8, Network: 9, Genre: 10, Overview: 11, RelSort: 12, DateSort: 13, AzSort: 14, ImgUrl: 15
|
||||
};
|
||||
$.each(data.results, function (index, item) {
|
||||
attrs = (!0 === item[result.isInDB] ? ' disabled="disabled"' : (!0 === checked ? '' : ' checked'));
|
||||
attrs = (!1 !== item[result.isInDB] ? ' disabled="disabled"' : (!0 === checked ? '' : ' checked'));
|
||||
checked = (' checked' === attrs) ? !0 : checked;
|
||||
rowType = (0 == row % 2 ? '' : ' alt');
|
||||
row++;
|
||||
|
@ -102,7 +102,7 @@ $(document).ready(function () {
|
|||
|
||||
srcState = [
|
||||
null === item[result.SrcName] ? '' : item[result.SrcName],
|
||||
!1 === item[result.isInDB] ? '' : '<span class="exists-db">exists in db</span>']
|
||||
!1 === item[result.isInDB] ? '' : '<span class="exists-db"><a href="' + sbRoot + item[result.isInDB] + '" target="_blank">exists in db</a></span>']
|
||||
.join(' - ').replace(/(^[\s-]+|[\s-]+$)/, '');
|
||||
resultStr += '<div class="results-item' + rowType + '" data-indb="' + (!1 === item[result.isInDB] ? '' : '1') + '" data-sort-rel="' + item[result.RelSort] + '" data-sort-date="' + item[result.DateSort] + '" data-sort-az="' + item[result.AzSort] + '">'
|
||||
+ '<input id="whichSeries" type="radio"'
|
||||
|
|
|
@ -3153,7 +3153,7 @@ class NewHomeAddShows(Home):
|
|||
map(final_results.extend,
|
||||
([[id_names[iid], any([helpers.find_show_by_id(
|
||||
sickbeard.showList, {(iid, INDEXER_TVDB)[INDEXER_TVDB_X == iid]: int(show['id'])},
|
||||
no_mapped_ids=False)]),
|
||||
no_mapped_ids=False)]) and '/home/displayShow?show=%s' % int(show['id']),
|
||||
iid, (iid, INDEXER_TVDB)[INDEXER_TVDB_X == iid],
|
||||
sickbeard.indexerApi((iid, INDEXER_TVDB)[INDEXER_TVDB_X == iid]).config['show_url'], int(show['id']),
|
||||
show['seriesname'], self.encode_html(show['seriesname']), show['firstaired'],
|
||||
|
|
Loading…
Reference in a new issue