Skip to content

Commit

Permalink
[BF] - Peering matrix - single member display - islandbridgenetworks/…
Browse files Browse the repository at this point in the history
  • Loading branch information
yannrobin authored and barryo committed Dec 18, 2019
1 parent c32e4e0 commit 1eaf792
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 7 additions & 1 deletion resources/views/peering-matrix/index.foil.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,14 @@

<?php $inner = 0 ?>

<?php foreach( $t->custs as $y_as => $y ): ?>
<?php foreach( $t->custs as $y_as => $y ):

if( !$y['activepeeringmatrix'] ) {
continue;
}

?>

<td id="td-<?= $x_as ?>-<?= $y_as ?>" class="col-yasn-<?= $y_as ?> peering

<?php if( $y[ 'autsys' ] != $x[ 'autsys' ] ): ?>
Expand Down
11 changes: 3 additions & 8 deletions resources/views/peering-matrix/js/index.foil.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,28 +84,23 @@
*/
$( '[id|="th-as"]' ).on( "click", function( e ){

let yasn, sdisplay = false;
let sdisplay = false;
let yasn = (this.id).substring( 6 );

if( columnClicked ) {

columnClicked = false;
$( '[id|="th-as"]' ).show();
yasn = (this.id).substring( 6 );
sdisplay = true;

}
else {

columnClicked = true;
yasn = (this.id).substring( 6 );

}

$( '[id|="th-as"]' ).each( function( index, element ) {
let asn = (this.id).substring( 6 );

if( columnClicked ) {
if( asn == yasn ){
if( asn == yasn ) {
return;
}
}
Expand Down

0 comments on commit 1eaf792

Please sign in to comment.