Skip to content

Commit

Permalink
Towards fixing bug when aligning proteins to PDBs with no chains.
Browse files Browse the repository at this point in the history
  • Loading branch information
mriffle committed Mar 29, 2018
1 parent 99f9681 commit 5f0a778
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion proxl_web_app/WebRoot/js/structure-viewer-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3757,7 +3757,10 @@ var listChains = function( doDraw ) {

for( var i = 0; i < chains.length; i++ ) {

html = "<div style=\"margin-top:10px;\" id=\"chain-" + chains[ i ].name() + "-div\"><span style=\"font-size:14pt;\">Chain: " + chains[ i ].name() + "</span>\n";
var chainDisplayName = chains[ i ].name();
if( chainDisplayName === " " ) { chainDisplayName = "Default"; }

html = "<div style=\"margin-top:10px;\" id=\"chain-" + chains[ i ].name() + "-div\"><span style=\"font-size:14pt;\">Chain: " + chainDisplayName + "</span>\n";

if( _PDB_FILES[ pdbFile.id ][ 'canEdit' ] ) {
if( PDBChainIsProtein( chains[ i ].name() ) ) {
Expand Down

0 comments on commit 5f0a778

Please sign in to comment.