0.3.12
This commit is contained in:
parent
9237571bcf
commit
065fbdd430
@ -33,6 +33,8 @@ Contents
|
|||||||
|
|
||||||
**Changes introduced in 0.3.12
|
**Changes introduced in 0.3.12
|
||||||
[Fix] Corrected nested insert size as displayed in "Available Templates" box
|
[Fix] Corrected nested insert size as displayed in "Available Templates" box
|
||||||
|
[Fix] Template port ID add/remove field not refreshing when shown for different connectable partitions
|
||||||
|
[Enhance] When configuring template port ID, show last port ID in long abreviated list
|
||||||
|
|
||||||
**Changes introduced in 0.3.11
|
**Changes introduced in 0.3.11
|
||||||
[Enhance] Added ability to create inserts with enclosure partitions
|
[Enhance] Added ability to create inserts with enclosure partitions
|
||||||
|
|||||||
@ -1689,25 +1689,6 @@ function handleScrollLock(){
|
|||||||
function buildInsertParent(RUSize, hUnits, vUnits, encLayoutX, encLayoutY, nestedInsert, parentHUnits, parentVUnits, parentEncLayoutX, parentEncLayoutY){
|
function buildInsertParent(RUSize, hUnits, vUnits, encLayoutX, encLayoutY, nestedInsert, parentHUnits, parentVUnits, parentEncLayoutX, parentEncLayoutY){
|
||||||
var variables = getVariables();
|
var variables = getVariables();
|
||||||
|
|
||||||
/*
|
|
||||||
var totalVUnits = RUSize * 2;
|
|
||||||
var flexRow = hUnits/24;
|
|
||||||
var flexCol = vUnits/totalVUnits;
|
|
||||||
|
|
||||||
console.log('hUnits: '+hUnits);
|
|
||||||
console.log('parentHUnits: '+parentHUnits);
|
|
||||||
console.log('parentEncLayoutX: '+parentEncLayoutX);
|
|
||||||
console.log('nestedInsert: '+nestedInsert);
|
|
||||||
|
|
||||||
if(nestedInsert) {
|
|
||||||
|
|
||||||
parentFlexWidth = (parentHUnits / 24) / parentEncLayoutX;
|
|
||||||
parentFlexHeight = (parentVUnits / (RUSize * 2)) / parentEncLayoutY;
|
|
||||||
flexRow = parentFlexWidth * flexRow;
|
|
||||||
flexCol = parentFlexHeight * flexCol;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
if(nestedInsert) {
|
if(nestedInsert) {
|
||||||
parentFlexWidth = (parentHUnits / 24) / parentEncLayoutX;
|
parentFlexWidth = (parentHUnits / 24) / parentEncLayoutX;
|
||||||
parentFlexHeight = (parentVUnits / (RUSize * 2)) / parentEncLayoutY;
|
parentFlexHeight = (parentVUnits / (RUSize * 2)) / parentEncLayoutY;
|
||||||
@ -2398,6 +2379,7 @@ $( document ).ready(function() {
|
|||||||
$(document).data('portNameFormatAction', $(invoker).data('portNameAction'));
|
$(document).data('portNameFormatAction', $(invoker).data('portNameAction'));
|
||||||
|
|
||||||
setPortNameInput();
|
setPortNameInput();
|
||||||
|
handlePortNameFieldAddRemoveButtons();
|
||||||
updatePortNameDisplay();
|
updatePortNameDisplay();
|
||||||
setPortNameFieldFocus();
|
setPortNameFieldFocus();
|
||||||
|
|
||||||
|
|||||||
@ -23,15 +23,17 @@ if($_SERVER['REQUEST_METHOD'] == 'POST'){
|
|||||||
$portTotal = $data['portTotal'];
|
$portTotal = $data['portTotal'];
|
||||||
$portNameListLong = '';
|
$portNameListLong = '';
|
||||||
$portNameListShort = '';
|
$portNameListShort = '';
|
||||||
|
$portNameListShortCount = 3;
|
||||||
|
$portNameListLongCount = 5;
|
||||||
|
|
||||||
for($x=0; $x<$portTotal; $x++) {
|
for($x=0; $x<$portTotal; $x++) {
|
||||||
$portName = $qls->App->generatePortName($portNameFormat, $x, $portTotal);
|
$portName = $qls->App->generatePortName($portNameFormat, $x, $portTotal);
|
||||||
|
|
||||||
if($x < 3) {
|
if($x < $portNameListShortCount) {
|
||||||
$portNameListShort .= $portName.', ';
|
$portNameListShort .= $portName.', ';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($x < 10) {
|
if($x < $portNameListLongCount) {
|
||||||
$portNameListLong .= $portName.'<br>';
|
$portNameListLong .= $portName.'<br>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,7 +45,10 @@ if($_SERVER['REQUEST_METHOD'] == 'POST'){
|
|||||||
}
|
}
|
||||||
|
|
||||||
$portNameListShort .= '...';
|
$portNameListShort .= '...';
|
||||||
$portNameListLong .= '...';
|
//$portNameListLong .= '...';
|
||||||
|
if($portTotal > $portNameListLongCount) {
|
||||||
|
$portNameListLong .= '...<br>'.$portNameLast;
|
||||||
|
}
|
||||||
$portRange = $portNameFirst.'‑'.$portNameLast;
|
$portRange = $portNameFirst.'‑'.$portNameLast;
|
||||||
|
|
||||||
$validate->returnData['success']['portNameListLong'] = $portNameListLong;
|
$validate->returnData['success']['portNameListLong'] = $portNameListLong;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user