Jelajahi Sumber

fixed this. attachBehaviors bug

bach 1 bulan lalu
induk
melakukan
94eec641da

File diff ditekan karena terlalu besar
+ 0 - 0
web/themes/custom/edlptheme/assets/dist/scripts/main.min.js


File diff ditekan karena terlalu besar
+ 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();

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini