X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fparagraphs%2Fjs%2Fparagraphs.actions.js;fp=web%2Fmodules%2Fcontrib%2Fparagraphs%2Fjs%2Fparagraphs.actions.js;h=0000000000000000000000000000000000000000;hp=3fe7a6cbacd6c3e1768550128b8c81ff070b462f;hb=059867c3f96750652c80f39e44c442a58c2549ee;hpb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2 diff --git a/web/modules/contrib/paragraphs/js/paragraphs.actions.js b/web/modules/contrib/paragraphs/js/paragraphs.actions.js deleted file mode 100644 index 3fe7a6cba..000000000 --- a/web/modules/contrib/paragraphs/js/paragraphs.actions.js +++ /dev/null @@ -1,38 +0,0 @@ -/** - * @file - * Paragraphs actions JS code for paragraphs actions button. - */ - -(function ($, Drupal) { - - 'use strict'; - - /** - * Process paragraph_actions elements. - * - * @type {Drupal~behavior} - * - * @prop {Drupal~behaviorAttach} attach - * Attaches paragraphsActions behaviors. - */ - Drupal.behaviors.paragraphsActions = { - attach: function (context, settings) { - var $actionsElement = $(context).find('.paragraphs-dropdown').once('paragraphs-dropdown'); - // Attach event handlers to toggle button. - $actionsElement.each(function () { - var $this = $(this); - var $toggle = $this.find('.paragraphs-dropdown-toggle'); - - $toggle.on('click', function (e) { - e.preventDefault(); - $this.toggleClass('open'); - }); - - $toggle.on('focusout', function (e) { - $this.removeClass('open'); - }); - }); - } - }; - -})(jQuery, Drupal);