From 5ce3ede734295e286376515219489f77d82ac67f Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Sat, 7 Oct 2017 10:55:49 -0500 Subject: [PATCH] fix smart controller type arguments --- plugins/dynamix/DeviceInfo.page | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/plugins/dynamix/DeviceInfo.page b/plugins/dynamix/DeviceInfo.page index 7cf3ff864..5ab7a6d7a 100644 --- a/plugins/dynamix/DeviceInfo.page +++ b/plugins/dynamix/DeviceInfo.page @@ -64,14 +64,15 @@ function prepareDeviceInfo(form) { if (form.smLevel.value == 1.00) form.smLevel.value = ''; } function setGlue(form) { - var data = [{glue:'' ,more:0}, - {glue:'' ,more:0}, - {glue:'' ,more:0}, - {glue:',',more:1,min1:0,max1:127}, - {glue:'/',more:2,min1:1,max1:128,min2:1,max2:8}, - {glue:'/',more:3,min1:1,max1:4,min2:1,max2:128,min3:1,max3:4}, - {glue:'' ,more:0}, - {glue:',',more:1,min1:0,max1:127} + var data = [{glue:'' ,more:0}, // auto + {glue:'' ,more:0}, // ata + {glue:'' ,more:0}, // sata + {glue:'' ,more:0}, // scsi + {glue:',',more:1,min1:0,max1:127}, // 3ware + {glue:'/',more:2,min1:1,max1:128,min2:1,max2:8}, // areca + {glue:'/',more:3,min1:1,max1:4,min2:1,max2:128,min3:1,max3:4}, // highpoint + {glue:'' ,more:0}, // marvell + {glue:',',more:1,min1:0,max1:127} // megaraid ]; var n = form.smType.selectedIndex > 0 ? form.smType.selectedIndex-1 : ; var x = data[n]['more'];