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] Added support for ST connectors
[Fix] Hyphen encoded in search results
[Fix] Cabinet cable paths inaccessible
**Changes introduced in 0.3.15
[Fix] Floorplan object ports not available when making new connection

View File

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

View File

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

View File

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

View File

@ -110,7 +110,7 @@ $qls->Security->check_auth_page('operator.php');
<th>Cabinet</th>
</tr>
</thead>
<tbody id="cablePathTableBody">
<tbody>
<tr>
<td>Left</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">
<blockquote class="card-blockquote">
<div class="table-responsive">
<table id="cablePathTable" class="table table-striped table-bordered">
<table id="pathFinderTable" class="table table-striped table-bordered">
<thead>
<tr>
<th>MediaType</th>
@ -129,7 +129,7 @@
<!--th></th-->
</tr>
</thead>
<tbody id="cablePathTableBody">
<tbody id="pathFinderTableBody">
</tbody>
</table>
</div>