You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 rivejä
561 B

  1. import $ from 'jquery';
  2. class IHKPrintShare {
  3. constructor(wrapper) {
  4. this.wrapper = wrapper;
  5. this.initBookmarks();
  6. }
  7. initBookmarks() {
  8. this.bookmarks = this.wrapper.find('.bookmarks');
  9. this.wrapper.find('.share-mail').on('click', (e) => {
  10. e.preventDefault();
  11. this.bookmarks.addClass('show-bookmarks');
  12. })
  13. }
  14. }
  15. export default IHKPrintShare;
  16. $('body').on('ihk-init dynamic-component-loaded gfi-dynamic-init', function () {
  17. $('.print-share:not(.initiated)').each(function () {
  18. new IHKPrintShare($(this));
  19. });
  20. });