|
@@ -35,7 +35,7 @@ $feature = $variables['node']->feature;
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
if (Drupal.jsEnabled) {
|
|
|
- $(document).ready(function() {
|
|
|
+ Drupal.behaviors.organismBehavior = function (context){
|
|
|
// hide all tripal info boxes at the start
|
|
|
$(".tripal-info-box").hide();
|
|
|
|
|
@@ -73,7 +73,7 @@ if (Drupal.jsEnabled) {
|
|
|
}
|
|
|
|
|
|
$("#tripal_organism_toc").height($("#tripal_feature-base-box").parent().height());
|
|
|
- });
|
|
|
+ };
|
|
|
}
|
|
|
</script>
|
|
|
|