diff options
Diffstat (limited to 'core/misc/tabledrag.js')
-rw-r--r-- | core/misc/tabledrag.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/core/misc/tabledrag.js b/core/misc/tabledrag.js index 1cc75151abf..61f8e29e80d 100644 --- a/core/misc/tabledrag.js +++ b/core/misc/tabledrag.js @@ -153,7 +153,9 @@ */ Drupal.tableDrag.prototype.initColumns = function () { var $table = this.$table; - var hidden, cell, columnIndex; + var hidden; + var cell; + var columnIndex; for (var group in this.tableSettings) { if (this.tableSettings.hasOwnProperty(group)) { // Find the first field in this group. for (var d in this.tableSettings[group]) { @@ -586,7 +588,8 @@ * Pointerup behavior. */ Drupal.tableDrag.prototype.dropRow = function (event, self) { - var droppedRow, $droppedRow; + var droppedRow; + var $droppedRow; // Drop row functionality. if (self.rowObject !== null) { @@ -1048,7 +1051,8 @@ Drupal.tableDrag.prototype.row.prototype.isValidSwap = function (row) { var $row = $(row); if (this.indentEnabled) { - var prevRow, nextRow; + var prevRow; + var nextRow; if (this.direction === 'down') { prevRow = row; nextRow = $row.next('tr').get(0); @@ -1108,7 +1112,8 @@ */ Drupal.tableDrag.prototype.row.prototype.validIndentInterval = function (prevRow, nextRow) { var $prevRow = $(prevRow); - var minIndent, maxIndent; + var minIndent; + var maxIndent; // Minimum indentation: // Do not orphan the next row. |