mirror of
https://github.com/wled/WLED.git
synced 2025-07-19 08:46:34 +00:00
Merge pull request #3484 from WoodyLetsCode/settings-page
Show 2D Configuration button by default
This commit is contained in:
commit
ccc56d446f
@ -80,7 +80,7 @@
|
|||||||
<button type=submit id="b" onclick="window.location=getURL('/')">Back</button>
|
<button type=submit id="b" onclick="window.location=getURL('/')">Back</button>
|
||||||
<button type="submit" onclick="window.location=getURL('/settings/wifi')">WiFi Setup</button>
|
<button type="submit" onclick="window.location=getURL('/settings/wifi')">WiFi Setup</button>
|
||||||
<button type="submit" onclick="window.location=getURL('/settings/leds')">LED Preferences</button>
|
<button type="submit" onclick="window.location=getURL('/settings/leds')">LED Preferences</button>
|
||||||
<button id="2dbtn" style="display:none;" type="submit" onclick="window.location=getURL('/settings/2D')">2D Configuration</button>
|
<button id="2dbtn" type="submit" onclick="window.location=getURL('/settings/2D')">2D Configuration</button>
|
||||||
<button type="submit" onclick="window.location=getURL('/settings/ui')">User Interface</button>
|
<button type="submit" onclick="window.location=getURL('/settings/ui')">User Interface</button>
|
||||||
<button id="dmxbtn" style="display:none;" type="submit" onclick="window.location=getURL('/settings/dmx')">DMX Output</button>
|
<button id="dmxbtn" style="display:none;" type="submit" onclick="window.location=getURL('/settings/dmx')">DMX Output</button>
|
||||||
<button type="submit" onclick="window.location=getURL('/settings/sync')">Sync Interfaces</button>
|
<button type="submit" onclick="window.location=getURL('/settings/sync')">Sync Interfaces</button>
|
||||||
|
@ -238,8 +238,8 @@ void getSettingsJS(byte subPage, char* dest)
|
|||||||
|
|
||||||
if (subPage == SUBPAGE_MENU)
|
if (subPage == SUBPAGE_MENU)
|
||||||
{
|
{
|
||||||
#ifndef WLED_DISABLE_2D // include only if 2D is compiled in
|
#ifdef WLED_DISABLE_2D // include only if 2D is not compiled in
|
||||||
oappend(PSTR("gId('2dbtn').style.display='';"));
|
oappend(PSTR("gId('2dbtn').style.display='none';"));
|
||||||
#endif
|
#endif
|
||||||
#ifdef WLED_ENABLE_DMX // include only if DMX is enabled
|
#ifdef WLED_ENABLE_DMX // include only if DMX is enabled
|
||||||
oappend(PSTR("gId('dmxbtn').style.display='';"));
|
oappend(PSTR("gId('dmxbtn').style.display='';"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user