Drupal 8 Site using Vue
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.

17 lines
515 B

  1. !function (document, Drupal, $) {
  2. 'use strict';
  3. Drupal.behaviors.drupalVueModal = {
  4. attach: function attach(context) {
  5. $('#non-vue-modal-button', context).on('click', function (e) {
  6. e.preventDefault();
  7. $('#non-vue-modal .modal__mask').removeClass('hidden');
  8. });
  9. $('#non-vue-modal .modal__close', context).on('click', function (e) {
  10. e.preventDefault();
  11. $('#non-vue-modal .modal__mask').addClass('hidden');
  12. });
  13. }
  14. };
  15. }(document, Drupal, jQuery);