summaryrefslogtreecommitdiff
path: root/misc/tabledrag.js
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-03 05:34:37 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-03 05:34:37 +0000
commit3b2d24af0b8ca83415310e2b328cc60fa830837b (patch)
treef8f68e4f65f524141068a3c420aa4996422f5451 /misc/tabledrag.js
parent112e0ffa4fb143f47adc6a2f1ce859c2c97c887e (diff)
downloadbrdo-3b2d24af0b8ca83415310e2b328cc60fa830837b.tar.gz
brdo-3b2d24af0b8ca83415310e2b328cc60fa830837b.tar.bz2
#561726 by effulgentsia, TwoD, and sun: Make ajax.js and tabledrag.js implement Drupal.detachBehaviors().
Diffstat (limited to 'misc/tabledrag.js')
-rw-r--r--misc/tabledrag.js2
1 files changed, 2 insertions, 0 deletions
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);
};