From a251ff70fc5b49abc1a4556945c5f63afcdb01fa Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 12 Jun 2008 19:13:17 +0000 Subject: - Patch #251402 by quicksketch: text can't be selected via click and drag when the Drupal drag and drop interface is present in IE7. --- misc/tabledrag.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'misc') 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; } }; -- cgit v1.2.3