diff --git a/misc/tabledrag.js b/misc/tabledrag.js index 9916821..4c11942 100644 --- a/misc/tabledrag.js +++ b/misc/tabledrag.js @@ -411,7 +411,7 @@ Drupal.tableDrag.prototype.dragRow = function(event, self) { if (self.indentEnabled) { var xDiff = self.currentMouseCoords.x - self.dragObject.indentMousePos.x; // Set the number of indentations the mouse has been moved left or right. - var indentDiff = Math.round(xDiff / self.indentAmount * self.rtl); + var indentDiff = Math.round(xDiff / self.indentAmount); // Indent the row with our estimated diff, which may be further // restricted according to the rows around this row. var indentChange = self.rowObject.indent(indentDiff); @@ -703,7 +703,7 @@ Drupal.tableDrag.prototype.updateField = function(changedRow, group) { var maxVal = values[values.length - 1]; // Populate the values in the siblings. $(targetClass, siblings).each(function() { - // If there are more items than possible values, assign the maximum value to the row. + // If there are more items than possible values, assign the maximum value to the row. if (values.length > 0) { this.value = values.shift(); }