summaryrefslogtreecommitdiff
path: root/misc/tabledrag.js
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-06-12 19:13:17 +0000
committerDries Buytaert <dries@buytaert.net>2008-06-12 19:13:17 +0000
commita251ff70fc5b49abc1a4556945c5f63afcdb01fa (patch)
tree0b865a3f763a63a2980d33966223543e9cbc002b /misc/tabledrag.js
parentb5d491624ededd09cd57ce03a61fedfcdc97b597 (diff)
downloadbrdo-a251ff70fc5b49abc1a4556945c5f63afcdb01fa.tar.gz
brdo-a251ff70fc5b49abc1a4556945c5f63afcdb01fa.tar.bz2
- Patch #251402 by quicksketch: text can't be selected via click and drag when the Drupal drag and drop interface is present in IE7.
Diffstat (limited to 'misc/tabledrag.js')
-rw-r--r--misc/tabledrag.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/tabledrag.js b/misc/tabledrag.js
index abddd4380..b45b5ecee 100644
--- a/misc/tabledrag.js
+++ b/misc/tabledrag.js
@@ -87,8 +87,8 @@ Drupal.tableDrag = function(table, tableSettings) {
// Add mouse bindings to the document. The self variable is passed along
// as event handlers do not have direct access to the tableDrag object.
- $(document).bind('mousemove', function(event) { self.dragRow(event, self); return false; });
- $(document).bind('mouseup', function(event) { self.dropRow(event, self); });
+ $(document).bind('mousemove', function(event) { return self.dragRow(event, self); });
+ $(document).bind('mouseup', function(event) { return self.dropRow(event, self); });
};
/**
@@ -415,6 +415,8 @@ Drupal.tableDrag.prototype.dragRow = function(event, self) {
self.dragObject.indentMousePos.x += self.indentAmount * indentChange * self.rtl;
self.indentCount = Math.max(self.indentCount, self.rowObject.indents);
}
+
+ return false;
}
};