From feefbe6d75b36eeac2862a6b7b892b8d005022ac Mon Sep 17 00:00:00 2001 From: mjohnson Date: Tue, 8 Dec 2015 16:17:33 -0500 Subject: [PATCH] Added code to set database onload to content of --- hf/header.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hf/header.js b/hf/header.js index c81cebc..be5711e 100644 --- a/hf/header.js +++ b/hf/header.js @@ -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 );