X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fthemes%2Fseven%2Fjs%2Fnav-tabs.js;h=82d31cdb7f019558ac55631fd608cba5d2327448;hb=4f1b9b4ab48a8498afac9e2213a02a23ccf4a06c;hp=ba44ffb944c980177e5abd387fc8a60b1908505e;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/themes/seven/js/nav-tabs.js b/web/core/themes/seven/js/nav-tabs.js index ba44ffb94..82d31cdb7 100644 --- a/web/core/themes/seven/js/nav-tabs.js +++ b/web/core/themes/seven/js/nav-tabs.js @@ -1,14 +1,11 @@ /** - * @file - * Responsive navigation tabs. - * - * This also supports collapsible navigable is the 'is-collapsible' class is - * added to the main element, and a target element is included. - */ -(function ($, Drupal) { - - 'use strict'; +* DO NOT EDIT THIS FILE. +* See the following change record for more information, +* https://www.drupal.org/node/2815083 +* @preserve +**/ +(function ($, Drupal) { function init(i, tab) { var $tab = $(tab); var $target = $tab.find('[data-drupal-nav-tabs-target]'); @@ -37,11 +34,8 @@ $(window).on('resize.tabs', Drupal.debounce(handleResize, 150)).trigger('resize.tabs'); } - /** - * Initialise the tabs JS. - */ Drupal.behaviors.navTabs = { - attach: function (context, settings) { + attach: function attach(context, settings) { var $tabs = $(context).find('[data-drupal-nav-tabs]'); if ($tabs.length) { var notSmartPhone = window.matchMedia('(min-width: 300px)'); @@ -51,5 +45,4 @@ } } }; - -})(jQuery, Drupal); +})(jQuery, Drupal); \ No newline at end of file