Abdullah Almsaeed 7 yıl önce
ebeveyn
işleme
75d3ad12f2
1 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  1. 4 3
      tripal_ds/theme/js/tripal_ds.js

+ 4 - 3
tripal_ds/theme/js/tripal_ds.js

@@ -25,10 +25,11 @@
           else {
           else {
             $(fs).hide('normal', function () {
             $(fs).hide('normal', function () {
               $(fs).addClass('hideTripalPane');
               $(fs).addClass('hideTripalPane');
+              var id = $(fs).attr('id');
               var event = $.Event('tripal_ds_pane_collapsed', {
               var event = $.Event('tripal_ds_pane_collapsed', {
-                id: $(fs).attr('id')
+                id: id
               });
               });
-              $(id).trigget(event);
+              $(id).trigger(event);
             });
             });
           }
           }
         });
         });
@@ -54,7 +55,7 @@
             $(id).show(300, function () {
             $(id).show(300, function () {
               // Trigger expansion event to allow the pane content
               // Trigger expansion event to allow the pane content
               // to react to the size change
               // to react to the size change
-              $(id).trigget($.Event('tripal_ds_pane_expanded', {id: id}));
+              $(id).trigger($.Event('tripal_ds_pane_expanded', {id: id}));
             });
             });
             return false;
             return false;
         });
         });