X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ftaxonomy%2Ftaxonomy.js;h=b15e5d14e80c8301453314fb79b3b3b9ea4be01c;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=99338d5a8ec29d2427adbf55cebd19881d9b6be9;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/taxonomy/taxonomy.js b/web/core/modules/taxonomy/taxonomy.js index 99338d5a8..b15e5d14e 100644 --- a/web/core/modules/taxonomy/taxonomy.js +++ b/web/core/modules/taxonomy/taxonomy.js @@ -1,33 +1,20 @@ /** - * @file - * Taxonomy behaviors. - */ +* DO NOT EDIT THIS FILE. +* See the following change record for more information, +* https://www.drupal.org/node/2815083 +* @preserve +**/ (function ($, Drupal) { - - 'use strict'; - - /** - * Move a block in the blocks table from one region to another. - * - * This behavior is dependent on the tableDrag behavior, since it uses the - * objects initialized in that behavior to update the row. - * - * @type {Drupal~behavior} - * - * @prop {Drupal~behaviorAttach} attach - * Attaches the drag behavior to a applicable table element. - */ Drupal.behaviors.termDrag = { - attach: function (context, settings) { + attach: function attach(context, settings) { var backStep = settings.taxonomy.backStep; var forwardStep = settings.taxonomy.forwardStep; - // Get the blocks tableDrag object. + var tableDrag = Drupal.tableDrag.taxonomy; var $table = $('#taxonomy'); var rows = $table.find('tr').length; - // When a row is swapped, keep previous and next page classes set. tableDrag.row.prototype.onSwap = function (swappedRow) { $table.find('tr.taxonomy-term-preview').removeClass('taxonomy-term-preview'); $table.find('tr.taxonomy-term-divider-top').removeClass('taxonomy-term-divider-top'); @@ -52,5 +39,4 @@ }; } }; - -})(jQuery, Drupal); +})(jQuery, Drupal); \ No newline at end of file