mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 10:38:50 -05:00
Added 'preset current configuration' with New Config utility [12]
This commit is contained in:
@@ -23,7 +23,7 @@ span.indent{display:inline-block;width:200px;margin-top:11px;}
|
||||
|
||||
<script>
|
||||
function prepareNewConfig(form) {
|
||||
// Return preset as single line input
|
||||
// assemble preset value
|
||||
var preset = '';
|
||||
for (var i=1,item; item=form.preset.options[i]; i++) {
|
||||
if (item.selected) {
|
||||
@@ -32,9 +32,8 @@ function prepareNewConfig(form) {
|
||||
item.selected = false;
|
||||
}
|
||||
}
|
||||
item = form.preset.options[0];
|
||||
item.value = preset;
|
||||
item.selected = true;
|
||||
// set preset filter to populate slots
|
||||
$.post('/webGui/include/PrepareDisks.php',{preset:preset});
|
||||
}
|
||||
<?if (file_exists('/var/tmp/disks.ini')):?>
|
||||
function assign(id,disk) {
|
||||
@@ -77,7 +76,7 @@ effect of making it ***impossible*** to rebuild an existing failed drive - you h
|
||||
<?=mk_option_check(0,'Cache','Cache slots')?>
|
||||
</select>
|
||||
<br>
|
||||
<span class="indent"><input type="submit" name="cmdInit" value=" Apply " onclick="$.post('/webGui/include/PrepareDisks.php',{preset:preset.value})" disabled><input type="button" value=" Done " onclick="done()"></span>
|
||||
<span class="indent"><input type="submit" name="cmdInit" value=" Apply " disabled><input type="button" value=" Done " onclick="done()"></span>
|
||||
<?if ($disabled):?>
|
||||
<?=$superdat ? 'Array must be <b>STOPPED</b>' : 'Array has been <b>RESET</b> (please configure)'?>
|
||||
<?else:?>
|
||||
|
||||
Reference in New Issue
Block a user