mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix schedules direct buttons being hidden by default
This commit is contained in:
parent
0335f61cc1
commit
c5cdea622a
1 changed files with 4 additions and 2 deletions
|
@ -264,13 +264,15 @@ define(["jQuery", "loading", "emby-checkbox", "listViewStyle", "emby-input", "em
|
|||
self.init = function () {
|
||||
options = options || {};
|
||||
|
||||
if (options.showCancelButton) {
|
||||
// Show cancel button by default
|
||||
if (options.showCancelButton !== false) {
|
||||
page.querySelector(".btnCancel").classList.remove("hide");
|
||||
} else {
|
||||
page.querySelector(".btnCancel").classList.add("hide");
|
||||
}
|
||||
|
||||
if (options.showSubmitButton) {
|
||||
// Show submit button by default
|
||||
if (options.showSubmitButton !== false) {
|
||||
page.querySelector(".btnSubmitListings").classList.remove("hide");
|
||||
} else {
|
||||
page.querySelector(".btnSubmitListings").classList.add("hide");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue