Fixed disk share cycling

This commit is contained in:
bergware
2018-03-22 12:04:15 +01:00
parent 46fa0ac9ab
commit fd071f7eb2
+3 -3
View File
@@ -20,15 +20,15 @@ if (count($pages)==2) $tabbed = false;
$refs = []; $n = 0;
foreach ($disks as $ref) {
if ($ref['type']=='Flash') continue;
if ($ref['type']!='Data' && $ref['name']!='cache') continue;
if ($ref['fsColor']=='grey-off') continue;
$refs[] = $ref['name'];
if ($ref['name']==$name) $i = $n;
$n++;
}
$end = count($refs)-1;
$prev = $i>0 ? $refs[$i-1] : $refs[$end];
$next = $i<$end ? $refs[$i+1] : $refs[0];
$prev = urlencode($i>0 ? $refs[$i-1] : $refs[$end]);
$next = urlencode($i<$end ? $refs[$i+1] : $refs[0]);
?>
<style>
div.clone1{position:absolute;right:0;margin-top:0}