403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Old Sites/modip/modules/taxonomy/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Old Sites/modip/modules/taxonomy/taxonomy.js
// $Id: taxonomy.js,v 1.2 2007/12/16 10:36:53 goba Exp $

/**
 * Move a block in the blocks table from one region to another via select list.
 *
 * This behavior is dependent on the tableDrag behavior, since it uses the
 * objects initialized in that behavior to update the row.
 */
Drupal.behaviors.termDrag = function(context) {
  var table = $('#taxonomy', context);
  var tableDrag = Drupal.tableDrag.taxonomy; // Get the blocks tableDrag object.
  var rows = $('tr', table).size();

  // When a row is swapped, keep previous and next page classes set.
  tableDrag.row.prototype.onSwap = function(swappedRow) {
    $('tr.taxonomy-term-preview', table).removeClass('taxonomy-term-preview');
    $('tr.taxonomy-term-divider-top', table).removeClass('taxonomy-term-divider-top');
    $('tr.taxonomy-term-divider-bottom', table).removeClass('taxonomy-term-divider-bottom');

    if (Drupal.settings.taxonomy.backPeddle) {
      for (var n = 0; n < Drupal.settings.taxonomy.backPeddle; n++) {
        $(table[0].tBodies[0].rows[n]).addClass('taxonomy-term-preview');
      }
      $(table[0].tBodies[0].rows[Drupal.settings.taxonomy.backPeddle - 1]).addClass('taxonomy-term-divider-top');
      $(table[0].tBodies[0].rows[Drupal.settings.taxonomy.backPeddle]).addClass('taxonomy-term-divider-bottom');
    }

    if (Drupal.settings.taxonomy.forwardPeddle) {
      for (var n = rows - Drupal.settings.taxonomy.forwardPeddle - 1; n < rows - 1; n++) {
        $(table[0].tBodies[0].rows[n]).addClass('taxonomy-term-preview');
      }
      $(table[0].tBodies[0].rows[rows - Drupal.settings.taxonomy.forwardPeddle - 2]).addClass('taxonomy-term-divider-top');
      $(table[0].tBodies[0].rows[rows - Drupal.settings.taxonomy.forwardPeddle - 1]).addClass('taxonomy-term-divider-bottom');
    }
  };
};

Youez - 2016 - github.com/yon3zu
LinuXploit