Просмотр исходного кода

a minor ds fix to the js and commit addition to the admin usage page

Shawna Spoor 8 лет назад
Родитель
Сommit
83a615eace
2 измененных файлов с 6 добавлено и 1 удалено
  1. 5 0
      tripal/includes/tripal_admin_usage_page.inc
  2. 1 1
      tripal_ds/theme/js/tripal_ds.js

+ 5 - 0
tripal/includes/tripal_admin_usage_page.inc

@@ -1,4 +1,9 @@
 <?php
+
+/**
+ * Create the admin page for the dashboard.
+ *
+ */
 function tripal_admin_usage_page() {
   // set the breadcrumb
   $breadcrumb = array();

+ 1 - 1
tripal_ds/theme/js/tripal_ds.js

@@ -14,7 +14,7 @@
         $(this).css('cursor', 'pointer');
         $(this).css('margin', '0px 5px');
         $(this).click(function () {
-          var fs = $(this).parent().parent().parent().parent().parent();
+          var fs = $(this).parents('.field-group-fieldset');
           if($(fs).hasClass('showTripalPane'))  {
             $(fs).removeClass('showTripalPane');
             $(fs).addClass('hideTripalPane');