Skip to content

fix: add missing jquery.switchbutton includes to compose.manager.page#78

Open
wqcqj9rq5d-tech wants to merge 1 commit intomstrhakr:mainfrom
wqcqj9rq5d-tech:patch-1
Open

fix: add missing jquery.switchbutton includes to compose.manager.page#78
wqcqj9rq5d-tech wants to merge 1 commit intomstrhakr:mainfrom
wqcqj9rq5d-tech:patch-1

Conversation

@wqcqj9rq5d-tech
Copy link
Copy Markdown

Bug fix: missing jquery.switchbutton includes

compose_manager_main.php calls .switchButton() in multiple places, but compose.manager.page never loads the required CSS and JS files from Unraid's webGui.

Symptoms:

  • Autostart toggles in the Compose tab show as plain checkboxes, not toggle switches
  • Basic/Advanced View toggle does not render as a switch
  • Browser console: switchButton: false or $.fn.switchButton is not a function

Fix:
Added the two missing includes to compose.manager.page after the existing jquery.filetree.js include:

<link type="text/css" rel="stylesheet" href="<?autov('/webGui/styles/jquery.switchbutton.css')?>">
<script src="<?autov('/webGui/javascript/jquery.switchbutton.js')?>"></script>

Tested on: Unraid 7.2.3

compose_manager_main.php calls .switchButton() on lines 457 and 1459, but the required CSS and JS files were never loaded in compose.manager.page. This caused Autostart toggles and the Basic/Advanced View toggle to fail silently (switchButton: false).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant