tripal_analysis_interpro.js 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // Copyright 2009 Clemson University
  3. //
  4. if (Drupal.jsEnabled) {
  5. $(document).ready(function(){
  6. var fontcolor = $(".interpro_results_table tbody tr td table tbody tr td b a").parent().prev().css('color');
  7. // Disable the hyperlink for sequences in the interpro box
  8. $(".tripal_interpro_results_table tbody tr td table tbody tr td b a").removeAttr('href');
  9. $(".tripal_interpro_results_table tbody tr td table tbody tr td b a").css('font-weight','normal');
  10. $(".tripal_interpro_results_table tbody tr td table tbody tr td b a").css('text-decoration','none');
  11. $(".tripal_interpro_results_table tbody tr td table tbody tr td b a").css('color',fontcolor);
  12. // Allow selection of "Load GO term to the database" only when the submitting job to parse
  13. // html output is enabled
  14. isSubmittingJob ();
  15. });
  16. // Disable parse GO checkbox if no interpro job is submitted
  17. function isSubmittingJob () {
  18. if ($('#edit-interprojob').is(":checked")) {
  19. var fontcolor = $("#edit-parsego").parent().parent().prev().children().css('color');
  20. $("#edit-parsego").attr('disabled', false);
  21. $("#edit-parsego-wrapper").css("color", fontcolor);
  22. } else {
  23. $("#edit-parsego").attr('checked', false);
  24. $("#edit-parsego").attr('disabled', true);
  25. $("#edit-parsego-wrapper").css("color", "grey");
  26. }
  27. }
  28. }