浏览代码

fixed this. attachBehaviors bug

bach 1 月之前
父节点
当前提交
94eec641da

文件差异内容过多而无法显示
+ 0 - 0
web/themes/custom/edlptheme/assets/dist/scripts/main.min.js


文件差异内容过多而无法显示
+ 0 - 0
web/themes/custom/edlptheme/assets/dist/scripts/redirect.min.js


+ 2 - 1
web/themes/custom/edlptheme/assets/scripts/main.js

@@ -1512,7 +1512,8 @@
             this.cartelSwitchInterval = setInterval(this.switchCartel.bind(this), this.cartelSwitchIntervalMS);
           }
           // call drupal behaviours (for addtoany)
-          Drupal.attachBehaviors(this.$cartel);
+          console.log('AudioPlayer onNodeLoaded', this.$cartel);
+          Drupal.attachBehaviors(this.$cartel.get(0));
         }
         // open automaticly tha article if needed
         this.setAutoOpenArticle();

部分文件因为文件数量过多而无法显示