summaryrefslogtreecommitdiff
path: root/misc/tabledrag.js
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-03-13 23:15:09 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-03-13 23:15:09 +0000
commitb77475baf5eee88f7ca08adaf53c7c5eda6aca58 (patch)
tree4a1bf4029dc06956ceaa9c7373dbabb85e4dc3d0 /misc/tabledrag.js
parent35794257c39c915f15c23b968cd9edd166a12696 (diff)
downloadbrdo-b77475baf5eee88f7ca08adaf53c7c5eda6aca58.tar.gz
brdo-b77475baf5eee88f7ca08adaf53c7c5eda6aca58.tar.bz2
#360081 by quicksketch: Stop using global variables for JavaScript settings.
Diffstat (limited to 'misc/tabledrag.js')
-rw-r--r--misc/tabledrag.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/tabledrag.js b/misc/tabledrag.js
index 78854406d..d07b3c780 100644
--- a/misc/tabledrag.js
+++ b/misc/tabledrag.js
@@ -13,10 +13,10 @@
* See blocks.js for an example of adding additional functionality to tableDrag.
*/
Drupal.behaviors.tableDrag = {
- attach: function(context) {
- for (var base in Drupal.settings.tableDrag) {
+ attach: function(context, settings) {
+ for (var base in settings.tableDrag) {
if (!$('#' + base + '.tabledrag-processed', context).size()) {
- var tableSettings = Drupal.settings.tableDrag[base];
+ var tableSettings = settings.tableDrag[base];
$('#' + base).filter(':not(.tabledrag-processed)').each(function() {
// Create the new tableDrag instance. Save in the Drupal variable