Skip to content

Commit aa5fb3d

Browse files
committed
menu adjustments, other misc
1 parent 306da0a commit aa5fb3d

5 files changed

Lines changed: 5 additions & 31 deletions

File tree

emhttp/plugins/dynamix/Boot.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Type="xmenu"
2-
Tabs="true"
2+
Tabs="true"

emhttp/plugins/dynamix/Syslinux.page renamed to emhttp/plugins/dynamix/BootParameters.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Menu="Flash"
1+
Menu="Flash:4 Boot:3 OtherSettings"
22
Title="Boot Parameters"
33
Tag="edit"
44
Cond="file_exists('/boot/syslinux/syslinux.cfg')"

emhttp/plugins/dynamix/CacheDevices.page

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ _(Name)_:
228228

229229
_(Slots)_:
230230
: <select name="poolSlots">
231-
<?for ($n=1; $n<=2; $n++):?>
231+
<?for ($n=1; $n<=_var($var,'MAX_CACHESZ',0); $n++):?>
232232
<?=mk_option(1,$n,$n)?>
233233
<?endfor;?>
234234
</select>
@@ -246,7 +246,7 @@ _(Name)_:
246246

247247
_(Slots)_:
248248
: <select name="poolSlots">
249-
<?for ($n=1; $n<=_var($var,'MAX_CACHESZ',0); $n++):?>
249+
<?for ($n=1; $n<=2; $n++):?>
250250
<?=mk_option(1,$n,$n)?>
251251
<?endfor;?>
252252
</select>

emhttp/plugins/dynamix/Flash.page

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,2 @@
11
Type="xmenu"
2-
---
3-
<?PHP
4-
/* Copyright 2005-2023, Lime Technology
5-
* Copyright 2012-2023, Bergware International.
6-
*
7-
* This program is free software; you can redistribute it and/or
8-
* modify it under the terms of the GNU General Public License version 2,
9-
* as published by the Free Software Foundation.
10-
*
11-
* The above copyright notice and this permission notice shall be included in
12-
* all copies or substantial portions of the Software.
13-
*/
14-
?>
15-
<script>
16-
function toggleButton(button,id) {
17-
var disabled = true;
18-
switch (id) {
19-
case false:
20-
case true:
21-
disabled = id;
22-
break;
23-
default:
24-
$('select#'+id+' option').each(function(){if ($(this).prop('selected')==true) disabled = false;});
25-
}
26-
$('input#'+button).prop('disabled',disabled);
27-
}
28-
</script>
2+
Tabs="true"

emhttp/plugins/dynamix/system/ZFS_cache

100755100644
File mode changed.

0 commit comments

Comments
 (0)