From ae3421954d4b99739a4710aa35a50d1cfaa68db6 Mon Sep 17 00:00:00 2001 From: Eric Bremner <ebremner@uwaterloo.ca> Date: Thu, 16 Jun 2022 14:25:13 -0400 Subject: [PATCH] ISTWCMS-5641: fixing notice on context/settings --- src/patterns/04-components/button/buttons.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/patterns/04-components/button/buttons.js b/src/patterns/04-components/button/buttons.js index 0172b28a..698aa9b9 100644 --- a/src/patterns/04-components/button/buttons.js +++ b/src/patterns/04-components/button/buttons.js @@ -7,12 +7,12 @@ (function ($, Drupal) { 'use strict'; Drupal.behaviors.buttons = { - attach: function (context, settings) { + attach: function () { + // Only show the show/hide button if the user is logged in - //on the "view", "layout", or "latest version" tabs. + // on the "view", "layout", or "latest version" tabs. // (We have picked elements that should only exist on those pages, // and only when the user has editing access. - // $(document).ready( function () { /** -- GitLab