Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
drogith committed Aug 26, 2015
1 parent 9555ee9 commit ebb9e76
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions iseedelve/iseedelve/static/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,10 @@ $(document).ready(function(){
title = doc_dict['title'];
url_base = "http://ncbi.nlm.nih.gov/pubmed/"+pmid.toString();
child_item.title='<a class="menu-links" href="'+url_base+'" target="_blank">'+title+'</a>';
child_docs.push(child_item);
child_item.cmd = 'link';
child_item.data = new Object();
child_item.data.link = url_base;
child_docs.push(child_item);
}
break;

Expand All @@ -808,6 +811,9 @@ $(document).ready(function(){
title = doc_dict['dataItem']['title'];
url_base = "http://www.rcsb.org/pdb/explore/explore.do?structureId="+docid.toString();
child_item.title='<a class="menu-links" href="'+url_base+'" target="_blank">'+title+'</a>';
child_item.cmd = 'link';
child_item.data = new Object();
child_item.data.link = url_base;
child_docs.push(child_item);
}
break;
Expand All @@ -827,9 +833,15 @@ $(document).ready(function(){
id_limit = Math.min(5,id_list.length);
final_ids = id_list.slice(0,id_limit);
var doc_ids = JSON.stringify(final_ids);

documents_like_this(doc_ids);
}

if (ui.cmd == 'link')
{
$link=ui.item.data();
$url=$link.link;
window.open($url, '_blank');
}
}
});

Expand Down

0 comments on commit ebb9e76

Please sign in to comment.