spficklin 13 éve
szülő
commit
871efcb386

+ 44 - 0
tripal_analysis_interpro/theme/css/tripal_analysis_interpro.css

@@ -0,0 +1,44 @@
+
+.tripal_interpro-info-box {
+   margin-top: 10px;
+   margin-left: 0px;
+   margin-right: 0px;
+   margin-bottom: 0px;
+   padding-top: 0px;
+   padding-left: 0px;
+   padding-bottom: 0px;
+   padding-right: 0px;
+   border-collapse: collapse;
+   z-index: 10;
+}
+
+.tripal_interpro_results_table {
+   margin-left: auto;
+   margin-right: auto;
+}
+
+.tripal_interpro_results_table tbody {
+    border-top: none;
+}
+
+.tripal_interpro_results_table tbody tr td table{
+   background: #FFFFFF;
+}
+
+.tripal_interpro_results_table tbody tr td table tr{
+   background: #FFFFFF;
+}
+
+.tripal_interpro_results_table tbody tr td table tr td{
+   background: #FFFFFF;
+}
+/* feature node sepcific template */
+.tripal_feature_interpro-results-table {
+   padding-top: 10px;
+   padding-bottom: 10px;
+}
+.tripal_feature-interpro_results_subtitle{
+   padding-top: 10px;
+   padding-bottom: 10px;
+   font-weight: bold;
+}

+ 29 - 0
tripal_analysis_interpro/theme/js/tripal_analysis_interpro.js

@@ -0,0 +1,29 @@
+if (Drupal.jsEnabled) {
+   
+   $(document).ready(function(){
+	   var fontcolor = $(".interpro_results_table tbody tr td table tbody tr td b a").parent().prev().css('color');
+	   // Disable the hyperlink for sequences in the interpro box
+	   $(".tripal_interpro_results_table tbody tr td table tbody tr td b a").removeAttr('href');
+	   $(".tripal_interpro_results_table tbody tr td table tbody tr td b a").css('font-weight','normal');
+	   $(".tripal_interpro_results_table tbody tr td table tbody tr td b a").css('text-decoration','none');
+	   $(".tripal_interpro_results_table tbody tr td table tbody tr td b a").css('color',fontcolor);
+	   
+	   // Allow selection of "Load GO term to the database" only when the submitting job to parse
+	   // html output is enabled
+	   isSubmittingJob ();
+   });
+   
+   // Disable parse GO checkbox if no interpro job is submitted
+   function isSubmittingJob () {
+	   if ($('#edit-interprojob').is(":checked")) {
+		   var fontcolor = $("#edit-parsego").parent().parent().prev().children().css('color');
+		   $("#edit-parsego").attr('disabled', false);
+		   $("#edit-parsego-wrapper").css("color", fontcolor);
+		   
+	   } else {
+		   $("#edit-parsego").attr('checked', false);
+		   $("#edit-parsego").attr('disabled', true);
+		   $("#edit-parsego-wrapper").css("color", "grey");
+	   }
+   }
+}