From 1cadf35f0352f2bc96eb3786227581c331d1fd6b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 9 May 2010 13:57:59 +0000 Subject: - Patch #791264 by JacobSingh: block configuration screens using tableDrag throws JS error in block.js (row undefined). --- modules/block/block.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/block/block.js b/modules/block/block.js index 4647ee4e0..be284bfc1 100644 --- a/modules/block/block.js +++ b/modules/block/block.js @@ -64,8 +64,8 @@ Drupal.behaviors.blockSettingsSummary = { */ Drupal.behaviors.blockDrag = { attach: function (context, settings) { - // tableDrag is required for this behavior. - if (typeof Drupal.tableDrag == 'undefined') { + // tableDrag is required and we should be on the blocks admin page. + if (typeof Drupal.tableDrag == 'undefined' || typeof Drupal.tableDrag.blocks == 'undefined') { return; } -- cgit v1.2.3