diff --git a/src/patterns/04-components/button/buttons.js b/src/patterns/04-components/button/buttons.js index 0172b28a6457e1a4bb4851a38a3fe24d2601cd4a..698aa9b990e820d0836ff6c1653227d3fbb6dea1 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 () { /**