mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
Small fixes #865
This commit is contained in:
parent
95e3c62e30
commit
9bcced3cac
3 changed files with 12 additions and 8 deletions
|
@ -85,10 +85,10 @@
|
|||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
|
||||
<li><a (click)="allSeasons(node.data)">All Seasons</a></li>
|
||||
<li><a (click)="firstSeason(node.data)">First Season</a></li>
|
||||
<li><a (click)="latestSeason(node.data)">Latest Season</a></li>
|
||||
<li><a (click)="openClosestTab($event)">Select ...</a></li>
|
||||
<li><a href="#" (click)="allSeasons(node.data, $event)">All Seasons</a></li>
|
||||
<li><a href="#" (click)="firstSeason(node.data, $event)">First Season</a></li>
|
||||
<li><a href="#" (click)="latestSeason(node.data, $event)">Latest Season</a></li>
|
||||
<li><a href="#" (click)="openClosestTab($event)">Select ...</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -49,6 +49,7 @@ export class TvSearchComponent implements OnInit, OnDestroy {
|
|||
});
|
||||
}
|
||||
public openClosestTab(el: any) {
|
||||
el.preventDefault();
|
||||
const rowclass = "undefined";
|
||||
el = el.toElement;
|
||||
while (el.className !== rowclass) {
|
||||
|
@ -162,17 +163,20 @@ export class TvSearchComponent implements OnInit, OnDestroy {
|
|||
});
|
||||
}
|
||||
|
||||
public allSeasons(searchResult: ISearchTvResult) {
|
||||
public allSeasons(searchResult: ISearchTvResult, event: any) {
|
||||
event.preventDefault();
|
||||
searchResult.requestAll = true;
|
||||
this.request(searchResult);
|
||||
}
|
||||
|
||||
public firstSeason(searchResult: ISearchTvResult) {
|
||||
public firstSeason(searchResult: ISearchTvResult, event: any) {
|
||||
event.preventDefault();
|
||||
searchResult.firstSeason = true;
|
||||
this.request(searchResult);
|
||||
}
|
||||
|
||||
public latestSeason(searchResult: ISearchTvResult) {
|
||||
public latestSeason(searchResult: ISearchTvResult, event: any) {
|
||||
event.preventDefault();
|
||||
searchResult.latestSeason = true;
|
||||
this.request(searchResult);
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<small>You can find this here: <a href="https://www.pushbullet.com/#settings/account">https://www.pushbullet.com/#settings/account </a></small>
|
||||
<small>You can find this here: <a href="https://www.pushbullet.com/#settings/account" target="_blank">https://www.pushbullet.com/#settings/account </a></small>
|
||||
<div class="form-group">
|
||||
<label for="accessToken" class="control-label">Access Token</label>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue