Skip to content

Commit

Permalink
Removed branches when peers selected, code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sephcoster committed May 1, 2015
1 parent 02502a8 commit 888bc7a
Show file tree
Hide file tree
Showing 3 changed files with 279 additions and 267 deletions.
11 changes: 10 additions & 1 deletion frontend/src/js/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,15 @@
}
addParam('peers', status);
getPeerLinks();
$('#peerSelect').prop('checked', status );

// If Peer is checked, uncheck and disable Peers and branches as they will not be displayed for peer set.
$('#branchSelect').prop('disabled', status );
$('#superSelect').prop('disabled', status );
toggleBranches(false);
toggleSuper(false);

// Check the box
$('#peerSelect').prop('checked', status );
}

// Uses jQuery BlockUI plugin to block UI on data loading
Expand Down Expand Up @@ -202,6 +209,8 @@
// or layer type.
}


// Adjudicate the variables associated with selected app layers across the application (names, paths, etc)
function getLayerType( layer ){
var type, keyPath, displayName;

Expand Down
Loading

0 comments on commit 888bc7a

Please sign in to comment.