Skip to content

Commit

Permalink
Merge pull request #15 in NWS/standards from ~MJOHNSON/standards-upda…
Browse files Browse the repository at this point in the history
…tes:choose-default-db to master

* commit 'feefbe6d75b36eeac2862a6b7b892b8d005022ac':
  Added code to set database onload to content of <meta name='ncbi_db'>
  • Loading branch information
edwelker committed Mar 2, 2016
2 parents 2d0aec2 + feefbe6 commit b43be31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hf/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ if(c){
});
});
}

$("meta[name='ncbi_db']").each(function() {
var dbname = $(this).attr('content');
$("#database option[value="+dbname+"]").attr("selected","selected");
});
});
})( jQuery );

Expand Down

0 comments on commit b43be31

Please sign in to comment.