summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/tabledrag.js6
-rw-r--r--modules/block/block.js2
-rw-r--r--modules/taxonomy/taxonomy.js2
3 files changed, 5 insertions, 5 deletions
diff --git a/misc/tabledrag.js b/misc/tabledrag.js
index 295dd820a..46a89b2fa 100644
--- a/misc/tabledrag.js
+++ b/misc/tabledrag.js
@@ -13,7 +13,7 @@
*/
Drupal.behaviors.tableDrag = function(context) {
for (var base in Drupal.settings.tableDrag) {
- if (!$('#' + base + '.tabledrag-processed').size(), context) {
+ if (!$('#' + base + '.tabledrag-processed', context).size()) {
var tableSettings = Drupal.settings.tableDrag[base];
$('#' + base).filter(':not(.tabledrag-processed)').each(function() {
@@ -47,7 +47,7 @@ Drupal.tableDrag = function(table, tableSettings) {
this.oldY = 0; // Used to determine up or down direction from last mouse move.
this.changed = false; // Whether anything in the entire table has changed.
this.maxDepth = 0; // Maximum amount of allowed parenting.
- this.rtl = $('body').css('direction') == 'rtl' ? -1 : 1; // Direction of the page language.
+ this.rtl = $(this.table).css('direction') == 'rtl' ? -1 : 1; // Direction of the table.
// Configure the scroll settings.
this.scrollSettings = { amount: 4, interval: 50, trigger: 70 };
@@ -162,7 +162,7 @@ Drupal.tableDrag.prototype.makeDraggable = function(item) {
var self = this;
// Create the handle.
- var handle = $('<a href="#" title="Drag to re-order" class="tabledrag-handle"><div class="handle">&nbsp;</div></a>');
+ var handle = $('<a href="#" class="tabledrag-handle"><div class="handle">&nbsp;</div></a>').attr('title', Drupal.t('Drag to re-order'));
// Insert the handle after indentations (if any).
if ($('td:first .indentation:last', item).after(handle).size()) {
// Update the total width of indentation in this entire table.
diff --git a/modules/block/block.js b/modules/block/block.js
index 6a2a31d02..abfe48d43 100644
--- a/modules/block/block.js
+++ b/modules/block/block.js
@@ -1,4 +1,4 @@
-// $Id $
+// $Id$
/**
* Move a block in the blocks table from one region to another via select list.
diff --git a/modules/taxonomy/taxonomy.js b/modules/taxonomy/taxonomy.js
index fab014ac7..0631ebd99 100644
--- a/modules/taxonomy/taxonomy.js
+++ b/modules/taxonomy/taxonomy.js
@@ -1,4 +1,4 @@
-// $Id $
+// $Id$
/**
* Move a block in the blocks table from one region to another via select list.