- Patch #791264 by JacobSingh: block configuration screens using tableDrag throws JS error in block.js (row undefined).

merge-requests/26/head
Dries Buytaert 2010-05-09 13:57:59 +00:00
parent 4d795f3247
commit 1cadf35f03
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}