From 3b2d24af0b8ca83415310e2b328cc60fa830837b Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 3 Nov 2009 05:34:37 +0000 Subject: #561726 by effulgentsia, TwoD, and sun: Make ajax.js and tabledrag.js implement Drupal.detachBehaviors(). --- misc/tabledrag.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'misc/tabledrag.js') diff --git a/misc/tabledrag.js b/misc/tabledrag.js index d79eda06c..b40f95300 100644 --- a/misc/tabledrag.js +++ b/misc/tabledrag.js @@ -903,7 +903,9 @@ Drupal.tableDrag.prototype.row.prototype.isValidSwap = function (row) { * DOM element what will be swapped with the row group. */ Drupal.tableDrag.prototype.row.prototype.swap = function (position, row) { + Drupal.detachBehaviors(this.group, Drupal.settings, 'move'); $(row)[position](this.group); + Drupal.attachBehaviors(this.group, Drupal.settings); this.changed = true; this.onSwap(row); }; -- cgit v1.2.3