mirror of
https://github.com/unraid/webgui.git
synced 2026-01-23 18:09:02 -06:00
Multi cache support
This commit is contained in:
@@ -20,7 +20,7 @@ function sharename($share) {
|
||||
return substr($share,0,-4);
|
||||
}
|
||||
$bgcolor = strstr('white,azure',$display['theme']) ? '#f2f2f2' : '#1c1c1c';
|
||||
$shares = implode(',',array_map('escapeshellarg',array_filter(array_map('sharename',scandir('boot/config/shares')))));
|
||||
$shares2 = implode(',',array_map('escapeshellarg',array_filter(array_map('sharename',scandir('boot/config/shares')))));
|
||||
?>
|
||||
<link type="text/css" rel="stylesheet" href="<?autov("/webGui/styles/jquery.ui.css")?>">
|
||||
<link type="text/css" rel="stylesheet" href="<?autov("/plugins/dynamix.docker.manager/styles/style-{$display['theme']}.css")?>">
|
||||
@@ -45,7 +45,7 @@ function addPoolPopup() {
|
||||
var poolname = $(this).find('input[name="poolName"]').val();
|
||||
var valid = /^[a-z_][a-z0-9_-]*[a-z_]$/;
|
||||
var reserved = ['disk','disks','diskp','diskq','diskr','flash','parity','parity2'];
|
||||
var shares = [<?=$shares?>];
|
||||
var shares = [<?=$shares2?>];
|
||||
if (reserved.includes(poolname)) {
|
||||
swal({title:'_(Invalid pool name)_',text:'_(Do not use reserved names)_',type:'error',confirmButtonText:'_(Ok)_'});
|
||||
} else if (shares.includes(poolname)) {
|
||||
|
||||
Reference in New Issue
Block a user