This commit is contained in:
Garrett 2021-05-10 05:10:33 +00:00
parent 009d2c15ef
commit 759ac0014b
6 changed files with 22 additions and 8 deletions

View File

@ -40,6 +40,7 @@ Contents
[Enhance] Improved password hashing [Enhance] Improved password hashing
[Enhance] Added support for ST connectors [Enhance] Added support for ST connectors
[Fix] Hyphen encoded in search results [Fix] Hyphen encoded in search results
[Fix] Cabinet cable paths inaccessible
**Changes introduced in 0.3.15 **Changes introduced in 0.3.15
[Fix] Floorplan object ports not available when making new connection [Fix] Floorplan object ports not available when making new connection

View File

@ -89,6 +89,8 @@ function makePathDeleteClickable(selectSource){
$('.pathDistanceNumber').editable({ $('.pathDistanceNumber').editable({
showbuttons: false, showbuttons: false,
mode: 'inline', mode: 'inline',
showbuttons: false,
onblur: 'submit',
source: selectSource, source: selectSource,
url: 'backend/process_cabinet.php', url: 'backend/process_cabinet.php',
params: function(params){ params: function(params){
@ -122,6 +124,8 @@ function makePathDeleteClickable(selectSource){
$('.pathNotesText').editable({ $('.pathNotesText').editable({
showbuttons: false, showbuttons: false,
mode: 'inline', mode: 'inline',
showbuttons: false,
onblur: 'submit',
url: 'backend/process_cabinet.php', url: 'backend/process_cabinet.php',
params: function(params){ params: function(params){
var data = { var data = {
@ -347,6 +351,8 @@ function initializeEditable(){
}, },
pk: 1, pk: 1,
mode: 'inline', mode: 'inline',
showbuttons: false,
onblur: 'submit',
url: 'backend/process_cabinet-objects.php', url: 'backend/process_cabinet-objects.php',
params: function(params){ params: function(params){
var selectedObjID = $(document).data('selectedObjectID'); var selectedObjID = $(document).data('selectedObjectID');
@ -379,6 +385,8 @@ function initializeEditable(){
}, },
pk: 1, pk: 1,
mode: 'inline', mode: 'inline',
showbuttons: false,
onblur: 'submit',
url: 'backend/process_floorplan-objects.php', url: 'backend/process_floorplan-objects.php',
params: function(params){ params: function(params){
var selectedFloorplanObjID = $(document).data('selectedFloorplanObjectID'); var selectedFloorplanObjID = $(document).data('selectedFloorplanObjectID');
@ -1651,6 +1659,7 @@ $( document ).ready(function() {
cablePathLine += '<td><a href="#" class="pathNotesText" data-type="text" data-pk="'+responseJSON.success.newID+'"></a></td>'; cablePathLine += '<td><a href="#" class="pathNotesText" data-type="text" data-pk="'+responseJSON.success.newID+'"></a></td>';
cablePathLine += '<td><button class="btn btn-sm waves-effect waves-light btn-danger cablePathRemove"> <i class="fa fa-remove"></i> </button></td>'; cablePathLine += '<td><button class="btn btn-sm waves-effect waves-light btn-danger cablePathRemove"> <i class="fa fa-remove"></i> </button></td>';
cablePathLine += '</tr>'; cablePathLine += '</tr>';
console.log('Debug (cablePathLine): '+cablePathLine);
$('#cablePathTableBody').append(cablePathLine); $('#cablePathTableBody').append(cablePathLine);
makePathDeleteClickable(responseJSON.success.localCabinets); makePathDeleteClickable(responseJSON.success.localCabinets);
} }

View File

@ -14,7 +14,7 @@ function initializeEditable(){
pk: 1, pk: 1,
mode: 'inline', mode: 'inline',
showbuttons: false, showbuttons: false,
onblure: 'submit', onblur: 'submit',
url: 'backend/process_port.php', url: 'backend/process_port.php',
params: function(params){ params: function(params){
@ -968,10 +968,10 @@ $( document ).ready(function() {
}); });
// Initialize cable path table // Initialize cable path table
$('#cablePathTable').DataTable().off('click'); $('#pathFinderTable').DataTable().off('click');
$('#cablePathTable').DataTable().destroy(); $('#pathFinderTable').DataTable().destroy();
$('#cablePathTableBody').html(table); $('#pathFinderTableBody').html(table);
var pathTable = $('#cablePathTable').DataTable({ var pathTable = $('#pathFinderTable').DataTable({
'searching': false, 'searching': false,
'paging': false, 'paging': false,
'info': false 'info': false

View File

@ -416,6 +416,8 @@ function makeRackObjectsClickable(){
}, },
pk: 1, pk: 1,
mode: 'inline', mode: 'inline',
showbuttons: false,
onblur: 'submit',
url: 'backend/process_object-custom.php', url: 'backend/process_object-custom.php',
params: function(params){ params: function(params){
var data = { var data = {
@ -628,6 +630,8 @@ function makeRackObjectsClickable(){
}, },
pk: 1, pk: 1,
mode: 'inline', mode: 'inline',
showbuttons: false,
onblur: 'submit',
url: 'backend/process_object-custom.php', url: 'backend/process_object-custom.php',
params: function(params){ params: function(params){
var data = { var data = {

View File

@ -110,7 +110,7 @@ $qls->Security->check_auth_page('operator.php');
<th>Cabinet</th> <th>Cabinet</th>
</tr> </tr>
</thead> </thead>
<tbody id="cablePathTableBody"> <tbody>
<tr> <tr>
<td>Left</td> <td>Left</td>
<td><a href="javascript:void(0)" id="adjCabinetSelectL" class="adjCabinetSelect" data-type="select" data-pk="" data-value=""></a></td> <td><a href="javascript:void(0)" id="adjCabinetSelectL" class="adjCabinetSelect" data-type="select" data-pk="" data-value=""></a></td>

View File

@ -118,7 +118,7 @@
<div class="card-block"> <div class="card-block">
<blockquote class="card-blockquote"> <blockquote class="card-blockquote">
<div class="table-responsive"> <div class="table-responsive">
<table id="cablePathTable" class="table table-striped table-bordered"> <table id="pathFinderTable" class="table table-striped table-bordered">
<thead> <thead>
<tr> <tr>
<th>MediaType</th> <th>MediaType</th>
@ -129,7 +129,7 @@
<!--th></th--> <!--th></th-->
</tr> </tr>
</thead> </thead>
<tbody id="cablePathTableBody"> <tbody id="pathFinderTableBody">
</tbody> </tbody>
</table> </table>
</div> </div>