Abdullah Almsaeed 7 年之前
父节点
当前提交
75d3ad12f2
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      tripal_ds/theme/js/tripal_ds.js

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

@@ -25,10 +25,11 @@
           else {
             $(fs).hide('normal', function () {
               $(fs).addClass('hideTripalPane');
+              var id = $(fs).attr('id');
               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 () {
               // Trigger expansion event to allow the pane content
               // 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;
         });